Switch backup system to duplicity

This commit is contained in:
Bob Mottram 2017-08-25 17:38:13 +01:00
parent 52bf32cb28
commit 08959ac1bb
1 changed files with 8 additions and 8 deletions

View File

@ -344,8 +344,8 @@ function backup_directory_to_usb {
mkdir -p $USB_MOUNT/backup/${2}
fi
#backup_directory_to_usb_duplicity ${1} ${2}
backup_directory_to_usb_obnam ${1} ${2}
backup_directory_to_usb_duplicity ${1} ${2}
#backup_directory_to_usb_obnam ${1} ${2}
if [[ ${1} == "/root/temp"* || ${1} == *"tempbackup" ]]; then
shred -zu ${1}/*
@ -383,8 +383,8 @@ function restore_directory_from_usb {
if [ ! -d ${1} ]; then
mkdir ${1}
fi
#restore_directory_from_usb_duplicity ${1} ${2}
restore_directory_from_usb_obnam ${1} ${2}
restore_directory_from_usb_duplicity ${1} ${2}
#restore_directory_from_usb_obnam ${1} ${2}
}
function restore_directory_from_friend_obnam {
@ -413,8 +413,8 @@ function restore_directory_from_friend {
if [ ! -d ${1} ]; then
mkdir ${1}
fi
#restore_directory_from_friend_duplicity ${1} ${2}
restore_directory_from_friend_obnam ${1} ${2}
restore_directory_from_friend_duplicity ${1} ${2}
#restore_directory_from_friend_obnam ${1} ${2}
}
function backup_database_to_usb {
@ -514,8 +514,8 @@ function backup_directory_to_friend {
mkdir -p $SERVER_DIRECTORY/backup/${2}
fi
#backup_directory_to_friend_duplicity ${1} ${2}
backup_directory_to_friend_obnam ${1} ${2}
backup_directory_to_friend_duplicity ${1} ${2}
#backup_directory_to_friend_obnam ${1} ${2}
if [[ ${1} == "/root/temp"* || ${1} == *"tempbackup" ]]; then
shred -zu /root/temp${2}/*