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
|
|
@ -6,7 +6,7 @@ snapshot_dir="${data_dir}.snapshot"
|
|||
# Read-only snapshot for atomic backup
|
||||
btrfs subvolume snapshot -r "$data_dir" "$snapshot_dir" || exit $?
|
||||
|
||||
restic backup "$snapshot_dir"
|
||||
/usr/local/bin/restic backup "$snapshot_dir"
|
||||
|
||||
# Always remove snapshot subvolume, even if restic fails
|
||||
btrfs subvolume delete "$snapshot_dir"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue