sauvegardes/script_backups_mother.sh

12 lines
539 B
Bash

#! /bin/bash
rsync -avcHS --exclude 'var/backups' --exclude 'opt' --exclude 'sys' --exclude 'proc' --exclude 'dev' --delete / /var/backups/mother 1>> /var/log/backup.log
rsync -avcHS --exclude 'var/backups' --exclude 'opt' --exclude 'sys' --exclude 'proc' --exclude 'dev' --delete aunt.onlink:/ /var/backups/aunt 1>> /var/log/backup.log
echo "BACKUP SESSION $(date)" >> /var/log/backup.log
virt-backup backup 1>> /var/log/backup.log
virt-backup clean 1>> /var/log/backup.log
#find /var/backups -type f -exec sudo fallocate -v -d {} \;