Prune old archives
This commit is contained in:
@@ -47,6 +47,7 @@ if [ "$ACTION" = "initialize" ]; then
|
||||
borg init --encryption=repokey "$TARGET"
|
||||
elif [ "$ACTION" = "backup" ]; then
|
||||
borg create --stats "$MOUNTPOINT::"'{now}' "$TARGET"
|
||||
borg prune --list --show-rc --keep-daily 7 --keep-weekly 4 --keep-monthly 3 "$MOUNTPOINT"
|
||||
borg list "$MOUNTPOINT"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user