Commit 14269d7f authored by kaiyou's avatar kaiyou

Do not prune remotely

parent e2df82b7
......@@ -6,7 +6,6 @@ source /srv/config/backup.config
export RESTIC_REPOSITORY RESTIC_PASSWORD AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY
restic backup \
--verbose \
--cache-dir $CACHE_DIR \
--one-file-system \
--exclude-if-present .nobackup \
......@@ -14,8 +13,6 @@ restic backup \
wait $!
restic forget \
--verbose \
--prune \
--group-by "paths" \
--cache-dir $CACHE_DIR \
--keep-last $RETENTION_LASTS \
......@@ -25,4 +22,4 @@ restic forget \
--keep-yearly $RETENTION_YEARS &
wait $!
echo "Backup & cleaning is done."
\ No newline at end of file
echo "Backup & cleaning is done."
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment