summaryrefslogtreecommitdiff
path: root/btrfs-send-root.sh
diff options
context:
space:
mode:
Diffstat (limited to 'btrfs-send-root.sh')
-rw-r--r--btrfs-send-root.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/btrfs-send-root.sh b/btrfs-send-root.sh
index 6152db8..25e60f2 100644
--- a/btrfs-send-root.sh
+++ b/btrfs-send-root.sh
@@ -10,7 +10,8 @@ rootfs_uuid ()
10remote_btrfs_receiver() 10remote_btrfs_receiver()
11{ 11{
12# ssh "$BTRFS_RECEIVE_DESTINATION_HOST" -- "sudo btrfs receive $(shellescape "$BTRFS_RECEIVE_DESTINATION_PATH")" 12# ssh "$BTRFS_RECEIVE_DESTINATION_HOST" -- "sudo btrfs receive $(shellescape "$BTRFS_RECEIVE_DESTINATION_PATH")"
13 ssh "$BTRFS_RECEIVE_DESTINATION_HOST" -- "sudo sh sami/btrfs-receive-root.sh" 13 ssh "$BTRFS_RECEIVE_DESTINATION_HOST" -- \
14 "sudo sh sami/btrfs-receive-root.sh $(shellescape "$BTRFS_RECEIVE_DESTINATION_PATH") $(shellescape "$BTRFS_RECEIVE_SUBVOLUME_NAME")"
14} 15}
15 16
16dummy_receiver() 17dummy_receiver()
@@ -32,6 +33,7 @@ push_remote()
32 esac 33 esac
33 local BTRFS_RECEIVE_DESTINATION_PATH="${ssh_dst#*:}" 34 local BTRFS_RECEIVE_DESTINATION_PATH="${ssh_dst#*:}"
34 local BTRFS_RECEIVE_DESTINATION_HOST="${ssh_dst%%:*}" 35 local BTRFS_RECEIVE_DESTINATION_HOST="${ssh_dst%%:*}"
36 local BTRFS_RECEIVE_SUBVOLUME_NAME="${snap_dir#$mnt/}"
35 push_helper false "$snap_dir" "$prev_dir" "$src" remote_btrfs_receiver 37 push_helper false "$snap_dir" "$prev_dir" "$src" remote_btrfs_receiver
36} 38}
37 39