Browse Source

Switch backup system to duplicity

Bob Mottram 7 years ago
parent
commit
08959ac1bb
1 changed files with 8 additions and 8 deletions
  1. 8
    8
      src/freedombone-utils-backup

+ 8
- 8
src/freedombone-utils-backup View File

@@ -344,8 +344,8 @@ function backup_directory_to_usb {
344 344
             mkdir -p $USB_MOUNT/backup/${2}
345 345
         fi
346 346
 
347
-        #backup_directory_to_usb_duplicity ${1} ${2}
348
-        backup_directory_to_usb_obnam ${1} ${2}
347
+        backup_directory_to_usb_duplicity ${1} ${2}
348
+        #backup_directory_to_usb_obnam ${1} ${2}
349 349
 
350 350
         if [[ ${1} == "/root/temp"* || ${1} == *"tempbackup" ]]; then
351 351
             shred -zu ${1}/*
@@ -383,8 +383,8 @@ function restore_directory_from_usb {
383 383
     if [ ! -d ${1} ]; then
384 384
         mkdir ${1}
385 385
     fi
386
-    #restore_directory_from_usb_duplicity ${1} ${2}
387
-    restore_directory_from_usb_obnam ${1} ${2}
386
+    restore_directory_from_usb_duplicity ${1} ${2}
387
+    #restore_directory_from_usb_obnam ${1} ${2}
388 388
 }
389 389
 
390 390
 function restore_directory_from_friend_obnam {
@@ -413,8 +413,8 @@ function restore_directory_from_friend {
413 413
     if [ ! -d ${1} ]; then
414 414
         mkdir ${1}
415 415
     fi
416
-    #restore_directory_from_friend_duplicity ${1} ${2}
417
-    restore_directory_from_friend_obnam ${1} ${2}
416
+    restore_directory_from_friend_duplicity ${1} ${2}
417
+    #restore_directory_from_friend_obnam ${1} ${2}
418 418
 }
419 419
 
420 420
 function backup_database_to_usb {
@@ -514,8 +514,8 @@ function backup_directory_to_friend {
514 514
         mkdir -p $SERVER_DIRECTORY/backup/${2}
515 515
     fi
516 516
 
517
-    #backup_directory_to_friend_duplicity ${1} ${2}
518
-    backup_directory_to_friend_obnam ${1} ${2}
517
+    backup_directory_to_friend_duplicity ${1} ${2}
518
+    #backup_directory_to_friend_obnam ${1} ${2}
519 519
 
520 520
     if [[ ${1} == "/root/temp"* || ${1} == *"tempbackup" ]]; then
521 521
         shred -zu /root/temp${2}/*