From 71e9bb4ff64553c9ece4dd75a84bda8fd891f135 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Tue, 2 Aug 2022 15:11:38 +0000 Subject: [PATCH] Update script_backups_mother.sh --- script_backups_mother.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/script_backups_mother.sh b/script_backups_mother.sh index e4e608f..8ce1e4b 100644 --- a/script_backups_mother.sh +++ b/script_backups_mother.sh @@ -7,5 +7,16 @@ echo "BACKUP SESSION $(date)" >> /var/log/backup.log virt-backup backup 1>> /var/log/backup.log virt-backup clean 1>> /var/log/backup.log +/opt/sharedfs/outils/blockcommit_all.sh + #find /var/backups -type f -exec sudo fallocate -v -d {} \; +# Wait for aunt to finish +processes=$(ssh aunt 'ps aux' | grep virt-backup) + +while [ ! -z "$processes" ]; +do + sleep 60 +done + +find /var/backups -type f -exec sudo fallocate -v -d {} \;