summaryrefslogtreecommitdiff
path: root/btrfs-send-root.sh
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-04-22 16:03:26 -0400
committerAndrew Cady <d@jerkface.net>2016-04-22 18:50:58 -0400
commit59df1261e0dc123c22dde588ced5c3abbf8300ca (patch)
tree0d43897973fd866f32cb11c202fb26a521d94f7e /btrfs-send-root.sh
parent727026bb76dc2e9cbc4d935db5eb03049d65385e (diff)
updated btrfs send/recv code; script to put layered seed on iso
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