This commit is contained in:
2023-03-01 17:03:12 +01:00
parent 3ba505a5bb
commit 307ae34907
5 changed files with 18 additions and 10 deletions

View File

@@ -1,8 +1,11 @@
#!/bin/sh
REPOSITORY=pi@pi4.fritz.box:/media/hdext/borg
#REPOSITORY=pi@kodi.fritz.box:/media/hdext/borg
REPOSITORY=marc@vdr.fritz.box:/media/hdext/borg
#REPOSITORY=pi@vdrpi.fritz.box:tmp/mnt/borg
PREFIX=nassrc
if [ "$1" != "--prune" ]; then
borg create -v --stats --progress --compression zlib --one-file-system \
$REPOSITORY::'nassrc-{now:%Y-%m-%d}' \
/dat/src \
@@ -30,7 +33,7 @@ borg create -v --stats --progress --compression zlib --one-file-system \
--exclude '*/staging*/*' \
--exclude '/run'
fi
# Use the `prune` subcommand to maintain 7 daily, 4 weekly and 6 monthly