From c13ca5b8f1ddc9039ac930585bdbd950f2c8e08d Mon Sep 17 00:00:00 2001 From: Marc Hoppe Date: Tue, 30 Nov 2021 16:27:42 +0100 Subject: [PATCH] backupmac --- backupmac.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/backupmac.sh b/backupmac.sh index 3e5ea56..02a1f7d 100755 --- a/backupmac.sh +++ b/backupmac.sh @@ -7,15 +7,18 @@ REPOSITORY=pi@kodi:/media/hdext/borg borg create -v --stats --progress --compression zlib --one-file-system \ $REPOSITORY::'{hostname}-{now:%Y-%m-%d}' \ / \ + /Volumes/Data \ --exclude '*/tmp/*' \ --exclude '*/tmpfile/*' \ + --exclude '*/Temp/*' \ --exclude '/var/tmp/*' \ --exclude '/var/crash/*' \ --exclude '*/.cache/*' \ --exclude '*/cache/*' \ --exclude '*/.ccache/*' \ + --exclude '*/Caches/*' \ --exclude '*/mlocate.db*' \ - --exclude '/run' + --exclude '/run' \ --exclude '/var/cache/apt/archives/*.deb' \ --exclude '/var/cache/man' \ --exclude '/private/var' \ @@ -25,11 +28,13 @@ borg create -v --stats --progress --compression zlib --one-file-system \ --exclude '/Users/marc/Downloads' \ --exclude '*/Caches/*' \ --exclude '*/.Trash/*' \ + --exclude '*/.Spotlight-*' \ + --exclude '*/iPhone Software Updates/*' \ + --exclude '*/ot_shared_cache' \ + --exclude '*/dyld_shared_cache*' \ + --exclude '*/Downloads/*' \ - - - -# Use the `prune` subcommand to maintain 7 daily, 4 weekly and 6 monthly + Use the `prune` subcommand to maintain 7 daily, 4 weekly and 6 monthly # archives of THIS machine. The '{hostname}-' prefix is very important to # limit prune's operation to this machine's archives and not apply to # other machine's archives also.