diff --git a/backup-daemon/data/backup-auto-efi b/backup-daemon/data/backup-auto-efi index a3f4ef4..b04c007 100755 --- a/backup-daemon/data/backup-auto-efi +++ b/backup-daemon/data/backup-auto-efi @@ -1056,11 +1056,6 @@ restoreAuto() { #还原 #额外排除目录或文件 local excludes= if [ -d ${restoreDir}/data/efi ]; then - mkdir -p ${restoreDir}/data/boot/efi - mv -f ${restoreDir}/data/efi ${restoreDir}/data/boot/efi - fi - if [ -d ${restoreDir}/data/efi ]; then - mkdir -p ${rootpath}/boot rsync -avAXHr --no-inc-recursive --ignore-missing-args --delete ${restoreDir}/data/efi ${rootpath}/boot >/dev/null 2>>$PLOGFILE if [ $? -ne 0 -a $? -ne 24 -a $? -ne 23 ]; then echo "System restoring failed, please reboot your system!" @@ -1068,7 +1063,6 @@ restoreAuto() { #还原 exit 9 fi elif [ -d ${restoreDir}/data/boot/efi ]; then - mkdir -p ${rootpath}/boot rsync -avAXHr --no-inc-recursive --ignore-missing-args --delete ${restoreDir}/data/boot/efi ${rootpath}/boot >/dev/null 2>>$PLOGFILE if [ $? -ne 0 -a $? -ne 24 -a $? -ne 23 ]; then echo "System restoring failed, please reboot your system!"