Améliorations du suivi de la sync
This commit is contained in:
parent
d3bbc17d17
commit
a92a255d3c
|
@ -24,6 +24,7 @@ trap clean_exit INT
|
||||||
|
|
||||||
function clean_exit() {
|
function clean_exit() {
|
||||||
echo "Exiting..."
|
echo "Exiting..."
|
||||||
|
set +e
|
||||||
umount -q /mnt/${vm}
|
umount -q /mnt/${vm}
|
||||||
umount -q /mnt/${vm}-remote
|
umount -q /mnt/${vm}-remote
|
||||||
sync
|
sync
|
||||||
|
@ -33,6 +34,7 @@ function clean_exit() {
|
||||||
fi
|
fi
|
||||||
sleep 3
|
sleep 3
|
||||||
rmdir /mnt/${vm}*
|
rmdir /mnt/${vm}*
|
||||||
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -90,7 +92,7 @@ borg mount root@${backuphost}:/var/backups/borg/${vm}.repo::${DATES[backupdate]}
|
||||||
# Syncing
|
# Syncing
|
||||||
echo "Syncing now !"
|
echo "Syncing now !"
|
||||||
sleep 1
|
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
|
# Cleaning up
|
||||||
echo -e "\nOK\n"
|
echo -e "\nOK\n"
|
||||||
|
|
Loading…
Reference in New Issue