Skip to content

Commit

Permalink
Use src_root instead of subvolume/.snapshots in incremental-backup
Browse files Browse the repository at this point in the history
Avoid hardcoding the send location to be subvolume/.snapshots and be
consistent with the rest of the code that is using src_root.
  • Loading branch information
plattfot committed Mar 21, 2024
1 parent 8418603 commit 530fcd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion baksnapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ function incremental-backup {
error "Failed to send snapshot info!"
fi

if ! $sender send-incremental-snapshot "$subvolume/.snapshots/"{"$1","$2"} \
if ! $sender send-incremental-snapshot "$src_root/"{"$1","$2"} \
| $receiver receive-snapshot "$dest_root" "$2"
then
$receiver remove-broken-snapshot "$dest_root" "$1"
Expand Down

0 comments on commit 530fcd5

Please # to comment.