My backup scripts and tools
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/bin/bash
-
- BORG="$(dirname "$0")/borg.sh --rw"
- set -e
-
- if [ "$BORG_RW_KEY_ADDED" != "1" ] ; then
- echo "Re-executing under a new ssh agent"
- exec env BORG_RW_KEY_ADDED=1 ssh-agent "$0"
- fi
-
- echo "=== Please enter SSH key passphrase. Check Bitwarden for:"
- echo "=== borg basis / read-write SSH key"
- ssh-add -v "$(realpath "$(dirname "$0")")/ssh/id_ecdsa"
-
- $BORG prune \
- --verbose \
- --progress \
- --stats \
- --keep-within=7d \
- --keep-daily=14 \
- --keep-weekly=8 \
- --keep-monthly=-1
-
- $BORG compact \
- --verbose \
- --progress
|