diff --git a/restore.sh b/restore.sh index aa7a4b4..9b09422 100755 --- a/restore.sh +++ b/restore.sh @@ -24,6 +24,7 @@ trap clean_exit INT function clean_exit() { echo "Exiting..." + set +e umount -q /mnt/${vm} umount -q /mnt/${vm}-remote sync @@ -33,6 +34,7 @@ function clean_exit() { fi sleep 3 rmdir /mnt/${vm}* + exit 0 } @@ -90,7 +92,7 @@ borg mount root@${backuphost}:/var/backups/borg/${vm}.repo::${DATES[backupdate]} # Syncing echo "Syncing now !" sleep 1 -rsync -ar --progress --sparse /mnt/${vm}-remote/. /mnt/${vm} +rsync -ar --info=progress2 --no-i-r --sparse /mnt/${vm}-remote/. /mnt/${vm} # Cleaning up echo -e "\nOK\n"