Browse Source

obnam config file

Bob Mottram 9 years ago
parent
commit
271368aadd
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/freedombone-utils-backup

+ 2
- 1
src/freedombone-utils-backup View File

@@ -222,7 +222,8 @@ function set_obnam_client_name {
222 222
     # obnam can backup multiple machines with different domain names to
223 223
     # a repository. To be able to restore directories from different
224 224
     # machines we need to enforce a single client name for all backups
225
-    echo "client-name = ${PROJECT_NAME}" > /etc/obnam.conf
225
+    echo '[config]' > /etc/obnam.conf
226
+    echo "client-name = ${PROJECT_NAME}" >> /etc/obnam.conf
226 227
 }
227 228
 
228 229
 function backup_directory_to_usb {