|
@@ -2903,6 +2903,7 @@ function restore_database {
|
2903
|
2903
|
echo " mkdir /root/temp${1}" >> /usr/bin/$RESTORE_SCRIPT_NAME
|
2904
|
2904
|
echo ' fi' >> /usr/bin/$RESTORE_SCRIPT_NAME
|
2905
|
2905
|
restore_directory_from_usb "/root/temp${1}" "${1}"
|
|
2906
|
+ RESTORE_SUBDIR='var'
|
2906
|
2907
|
if [[ $BACKUP_TYPE != 'obnam' ]]; then
|
2907
|
2908
|
RESTORE_SUBDIR="usb/backup/${1}"
|
2908
|
2909
|
fi
|
|
@@ -4249,6 +4250,7 @@ function restore_database_from_friend {
|
4249
|
4250
|
echo " rm -rf /root/temp${1}data" >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME
|
4250
|
4251
|
echo " echo \"Restoring ${1} installation\"" >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME
|
4251
|
4252
|
restore_directory_from_friend /root/temp${1} ${1}
|
|
4253
|
+ RESTORE_SUBDIR='var'
|
4252
|
4254
|
if [[ $BACKUP_TYPE != 'obnam' ]]; then
|
4253
|
4255
|
RESTORE_SUBDIR="remoterestore/backup/${1}"
|
4254
|
4256
|
fi
|