backupskripte

This commit is contained in:
Marc Hoppe
2017-01-07 21:18:53 +01:00
parent 61d351c7e0
commit 3731b1551b
5 changed files with 31 additions and 6 deletions

View File

@@ -4,10 +4,9 @@ REPOSITORY=pi@vdrpi:/media/hdext/borg
borg create -v --stats --progress --compression zlib --one-file-system \
$REPOSITORY::'{hostname}-{now:%Y-%m-%d}' \
/ \
--exclude '/var/cache/apt/archives/*.deb' \
--exclude '/var/cache/man' \
--exclude '*/tmp/*' \
--exclude '/var/tmp' \
--exclude '/var/tmp/*' \
--exclude '/var/crash/*' \
--exclude '*/.cache/*' \
--exclude '*/cache/*' \
--exclude '*/.ccache/*' \