Commit 0cba9295 authored by kaiyou's avatar kaiyou

Backup multiple paths using restic to ease partial backups

parent b8ab99bd
......@@ -5,14 +5,11 @@ set -e -o pipefail
source /srv/config/backup.config
export RESTIC_REPOSITORY RESTIC_PASSWORD AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY
restic unlock &
wait $!
restic backup \
--verbose \
--one-file-system \
--exclude-if-present .nobackup \
$BACKUP_PATHS &
${*:-$(find $BACKUP_PATHS -maxdepth 1 -mindepth 1 -type d)} &
wait $!
restic forget \
......
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