From a92a255d3c440b9d4e9e45efbc9e2d4bcdff6aa5 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Wed, 22 Nov 2023 09:24:57 +0100 Subject: [PATCH] =?UTF-8?q?Am=C3=A9liorations=20du=20suivi=20de=20la=20syn?= =?UTF-8?q?c?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- restore.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"