backupskripte
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
#!/bin/sh
|
||||
REPOSITORY=pi@vdrpi:/media/hdext/borg
|
||||
PREFIX=nasgps
|
||||
BAKDIRS="/dat/docu/gps"
|
||||
|
||||
borg create -v --stats --progress --compression zlib --one-file-system \
|
||||
$REPOSITORY::'nasgps-{now:%Y-%m-%d}' \
|
||||
/dat/docu/gps \
|
||||
$REPOSITORY::$PREFIX-'{now:%Y-%m-%d}' \
|
||||
$BAKDIRS \
|
||||
--exclude '*/tmp/*' \
|
||||
--exclude '*.iso' \
|
||||
--exclude '*.exe' \
|
||||
@@ -20,5 +21,5 @@ borg create -v --stats --progress --compression zlib --one-file-system \
|
||||
# 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.
|
||||
borg prune -v $REPOSITORY --prefix 'nasgps-' \
|
||||
borg prune -v $REPOSITORY --prefix $PREFIX- \
|
||||
--keep-daily=7 --keep-weekly=4 --keep-monthly=20
|
||||
|
||||
Reference in New Issue
Block a user