Rename backup directory

This commit is contained in:
Bob Mottram 2016-11-16 21:17:23 +00:00
parent b2d27a915e
commit 9673b4ceed
1 changed files with 6 additions and 6 deletions

View File

@ -99,7 +99,7 @@ function backup_local_radicale {
fi
source_directory=/var/www/radicale
if [ -d $source_directory ]; then
dest_directory=radicalecollections
dest_directory=radicalewww
function_check backup_directory_to_usb
backup_directory_to_usb $source_directory $dest_directory
fi
@ -118,8 +118,8 @@ function restore_local_radicale {
fi
rm -rf $temp_restore_dir
temp_restore_dir=/root/tempradicalecollections
restore_directory_from_usb $temp_restore_dir radicalecollections
temp_restore_dir=/root/tempradicalewww
restore_directory_from_usb $temp_restore_dir radicalewww
cp -r $temp_restore_dir/var/www/radicale/* /var/www/radicale
if [ ! "$?" = "0" ]; then
function_check backup_unmount_drive
@ -137,7 +137,7 @@ function backup_remote_radicale {
if [ -d ${RADICALE_DIRECTORY} ]; then
echo $"Backing up the radicale settings"
backup_directory_to_friend ${RADICALE_DIRECTORY} radicale
backup_directory_to_friend /var/www/radicale radicalecollections
backup_directory_to_friend /var/www/radicale radicalewww
echo $"Backup of radicale settings complete"
fi
}
@ -153,8 +153,8 @@ function restore_remote_radicale {
fi
rm -rf $temp_restore_dir
temp_restore_dir=/root/tempradicalecollections
restore_directory_from_friend $temp_restore_dir radicalecollections
temp_restore_dir=/root/tempradicalewww
restore_directory_from_friend $temp_restore_dir radicalewww
cp -r $temp_restore_dir/var/www/radicale/* /var/www/radicale
if [ ! "$?" = "0" ]; then
exit 3674284