diff options
| author | Mirek Kratochvil <exa.exa@gmail.com> | 2014-10-12 10:23:54 +0200 |
|---|---|---|
| committer | Mirek Kratochvil <exa.exa@gmail.com> | 2014-10-12 10:23:54 +0200 |
| commit | 543f00bd3ae774389ba99959c8e2a29fd12b153f (patch) | |
| tree | c3794682da0737a08de88cb40f6596602e71e310 | |
| parent | ece4ab99df7f82216ab9d0b52a6f0ce3e22d828f (diff) | |
| download | zfs-backup-543f00bd3ae774389ba99959c8e2a29fd12b153f.tar.gz zfs-backup-543f00bd3ae774389ba99959c8e2a29fd12b153f.tar.bz2 | |
use replication streams for sending
May exhibit "recursive" behavior, but saves a lot of work when moving
zvol disk snapshots and similar stuff.
| -rwxr-xr-x | zb-pull | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -53,10 +53,10 @@ fi if [ "$newest_common" = "N/A" ] ; then #do a full send - ssh $ssh_remote "zfs send \"${remote_zfs}@zb-${newest}\"" | zfs recv -F "${local_zfs}" + ssh $ssh_remote "zfs send -R \"${remote_zfs}@zb-${newest}\"" | zfs recv -F "${local_zfs}" exit $? else #do incremental send - ssh $ssh_remote "zfs send -I \"${remote_zfs}@zb-${newest_common}\" \"${remote_zfs}@zb-${newest}\"" | zfs recv -F "${local_zfs}" + ssh $ssh_remote "zfs send -R -I \"${remote_zfs}@zb-${newest_common}\" \"${remote_zfs}@zb-${newest}\"" | zfs recv -F "${local_zfs}" exit $? fi |
