Rename backup directory
This commit is contained in:
parent
b2d27a915e
commit
9673b4ceed
|
@ -99,7 +99,7 @@ function backup_local_radicale {
|
||||||
fi
|
fi
|
||||||
source_directory=/var/www/radicale
|
source_directory=/var/www/radicale
|
||||||
if [ -d $source_directory ]; then
|
if [ -d $source_directory ]; then
|
||||||
dest_directory=radicalecollections
|
dest_directory=radicalewww
|
||||||
function_check backup_directory_to_usb
|
function_check backup_directory_to_usb
|
||||||
backup_directory_to_usb $source_directory $dest_directory
|
backup_directory_to_usb $source_directory $dest_directory
|
||||||
fi
|
fi
|
||||||
|
@ -118,8 +118,8 @@ function restore_local_radicale {
|
||||||
fi
|
fi
|
||||||
rm -rf $temp_restore_dir
|
rm -rf $temp_restore_dir
|
||||||
|
|
||||||
temp_restore_dir=/root/tempradicalecollections
|
temp_restore_dir=/root/tempradicalewww
|
||||||
restore_directory_from_usb $temp_restore_dir radicalecollections
|
restore_directory_from_usb $temp_restore_dir radicalewww
|
||||||
cp -r $temp_restore_dir/var/www/radicale/* /var/www/radicale
|
cp -r $temp_restore_dir/var/www/radicale/* /var/www/radicale
|
||||||
if [ ! "$?" = "0" ]; then
|
if [ ! "$?" = "0" ]; then
|
||||||
function_check backup_unmount_drive
|
function_check backup_unmount_drive
|
||||||
|
@ -137,7 +137,7 @@ function backup_remote_radicale {
|
||||||
if [ -d ${RADICALE_DIRECTORY} ]; then
|
if [ -d ${RADICALE_DIRECTORY} ]; then
|
||||||
echo $"Backing up the radicale settings"
|
echo $"Backing up the radicale settings"
|
||||||
backup_directory_to_friend ${RADICALE_DIRECTORY} radicale
|
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"
|
echo $"Backup of radicale settings complete"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -153,8 +153,8 @@ function restore_remote_radicale {
|
||||||
fi
|
fi
|
||||||
rm -rf $temp_restore_dir
|
rm -rf $temp_restore_dir
|
||||||
|
|
||||||
temp_restore_dir=/root/tempradicalecollections
|
temp_restore_dir=/root/tempradicalewww
|
||||||
restore_directory_from_friend $temp_restore_dir radicalecollections
|
restore_directory_from_friend $temp_restore_dir radicalewww
|
||||||
cp -r $temp_restore_dir/var/www/radicale/* /var/www/radicale
|
cp -r $temp_restore_dir/var/www/radicale/* /var/www/radicale
|
||||||
if [ ! "$?" = "0" ]; then
|
if [ ! "$?" = "0" ]; then
|
||||||
exit 3674284
|
exit 3674284
|
||||||
|
|
Loading…
Reference in New Issue