restic: backup scripts should use absolute paths
This commit is contained in:
parent
a6e4beefb3
commit
1afca6be94
3 changed files with 5 additions and 5 deletions
|
|
@ -9,9 +9,9 @@ export RESTIC_REPOSITORY='rest:http://{{ groups['nas'][0] }}:8000/backups'
|
|||
export RESTIC_PASSWORD_FILE='/etc/backups/restic_backups_passwd'
|
||||
|
||||
for script in $(find /etc/backups -name '*.backup.sh'); do
|
||||
bash "$script"
|
||||
/usr/bin/bash "$script"
|
||||
done
|
||||
|
||||
# Prune older backups
|
||||
restic forget --keep-last 7 && \
|
||||
restic prune
|
||||
/usr/local/bin/restic forget --keep-last 7 && \
|
||||
/usr/local/bin/restic prune
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue