Commit 9f5d24c6 authored by kaiyou's avatar kaiyou

Do not name a variable PATH :)

parent cdec6d11
......@@ -5,12 +5,12 @@ set -e -o pipefail
source /srv/config/backup.config
export RESTIC_REPOSITORY RESTIC_PASSWORD AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY
for PATH in ${*:-$(find $BACKUP_PATHS -maxdepth 1 -mindepth 1 -type d)}; do
for BACKUP_PATH in ${*:-$(find $BACKUP_PATHS -maxdepth 1 -mindepth 1 -type d)}; do
restic backup \
--cache-dir $CACHE_DIR \
--one-file-system \
--exclude-if-present .nobackup \
$PATH &
$BACKUP_PATH &
wait $!
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