restic-backup: Exclude caches

This commit is contained in:
Peter Cai 2022-12-29 22:21:13 -05:00
parent e7d024f68a
commit ec63e2303a

View file

@ -19,6 +19,6 @@ for dir in ${RESTIC_BACKUP_SUBVOL_PATHS[@]}; do
echo "snap = $snap"
sudo btrfs subvol delete "$snap" > /dev/null 2>&1 || true
sudo btrfs subvol snap "$dir" "$snap"
restic-wrapper --verbose backup "$snap"
restic-wrapper --verbose backup --exclude-caches "$snap"
sudo btrfs subvol delete "$snap" || true
done