diff --git a/src/freedombone b/src/freedombone index b65fa59c..b28407d9 100755 --- a/src/freedombone +++ b/src/freedombone @@ -2903,6 +2903,7 @@ function restore_database { echo " mkdir /root/temp${1}" >> /usr/bin/$RESTORE_SCRIPT_NAME echo ' fi' >> /usr/bin/$RESTORE_SCRIPT_NAME restore_directory_from_usb "/root/temp${1}" "${1}" + RESTORE_SUBDIR='var' if [[ $BACKUP_TYPE != 'obnam' ]]; then RESTORE_SUBDIR="usb/backup/${1}" fi @@ -4249,6 +4250,7 @@ function restore_database_from_friend { echo " rm -rf /root/temp${1}data" >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME echo " echo \"Restoring ${1} installation\"" >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME restore_directory_from_friend /root/temp${1} ${1} + RESTORE_SUBDIR='var' if [[ $BACKUP_TYPE != 'obnam' ]]; then RESTORE_SUBDIR="remoterestore/backup/${1}" fi