Browse Source

var directory

Bob Mottram 9 years ago
parent
commit
5cd6989e59
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/freedombone

+ 2
- 0
src/freedombone View File

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