backupmac
This commit is contained in:
11
backupmac.sh
11
backupmac.sh
@@ -7,16 +7,23 @@ REPOSITORY=pi@kodi:/media/hdext/borg
|
|||||||
borg create -v --stats --progress --compression zlib --one-file-system \
|
borg create -v --stats --progress --compression zlib --one-file-system \
|
||||||
$REPOSITORY::'{hostname}-{now:%Y-%m-%d}' \
|
$REPOSITORY::'{hostname}-{now:%Y-%m-%d}' \
|
||||||
/ \
|
/ \
|
||||||
|
--exclude '*/tmp/*' \
|
||||||
|
--exclude '*/tmpfile/*' \
|
||||||
|
--exclude '/var/tmp/*' \
|
||||||
|
--exclude '/var/crash/*' \
|
||||||
|
--exclude '*/.cache/*' \
|
||||||
|
--exclude '*/cache/*' \
|
||||||
|
--exclude '*/.ccache/*' \
|
||||||
|
--exclude '*/mlocate.db*' \
|
||||||
|
--exclude '/run'
|
||||||
--exclude '/var/cache/apt/archives/*.deb' \
|
--exclude '/var/cache/apt/archives/*.deb' \
|
||||||
--exclude '/var/cache/man' \
|
--exclude '/var/cache/man' \
|
||||||
--exclude '/private/var' \
|
--exclude '/private/var' \
|
||||||
--exclude '/tmp' \
|
--exclude '/tmp' \
|
||||||
--exclude '/var/tmp' \
|
--exclude '/var/tmp' \
|
||||||
--exclude '/run' \
|
|
||||||
--exclude '/Users/marc/tmp' \
|
--exclude '/Users/marc/tmp' \
|
||||||
--exclude '/Users/marc/Downloads' \
|
--exclude '/Users/marc/Downloads' \
|
||||||
--exclude '*/Caches/*' \
|
--exclude '*/Caches/*' \
|
||||||
--exclude '*/.cache/*' \
|
|
||||||
--exclude '*/.Trash/*' \
|
--exclude '*/.Trash/*' \
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user