Update script_backups_mother.sh

This commit is contained in:
Adrien Bourmault 2022-08-02 15:11:38 +00:00
parent 9844ab07d3
commit 71e9bb4ff6
1 changed files with 11 additions and 0 deletions

View File

@ -7,5 +7,16 @@ echo "BACKUP SESSION $(date)" >> /var/log/backup.log
virt-backup backup 1>> /var/log/backup.log virt-backup backup 1>> /var/log/backup.log
virt-backup clean 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 {} \; #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 {} \;