correction potentiel bug de montage

This commit is contained in:
Adrien Bourmault 2024-05-31 16:46:48 +02:00
parent 1858701627
commit 4e4769b555
1 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,11 @@ echo "==========================================================================
START_TIME=$(date +"%s")
START_SIZE=$(du -s /var/backups/borg/ | awk '{ print $1 }')
## Remount backup drive
sync
umount /var/backups
mount /var/backups
## Fix owner.
chown -R borg.borg /var/backups/borg/