diff options
author | Brian Cully <bjc@kublai.com> | 2018-06-06 12:57:34 -0400 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2018-06-06 12:57:34 -0400 |
commit | 6228dde234ae7d198071fc5e96f7c98af3044398 (patch) | |
tree | 222999f5a829769da457ac6a472fdba0e45ac410 /send-backup | |
parent | b6e77390279ca0b5ae4953df8f651311420f6238 (diff) | |
download | zfs-scripts-6228dde234ae7d198071fc5e96f7c98af3044398.tar.gz zfs-scripts-6228dde234ae7d198071fc5e96f7c98af3044398.zip |
More intelligent backup clone script.
Diffstat (limited to 'send-backup')
-rwxr-xr-x | send-backup | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/send-backup b/send-backup deleted file mode 100755 index 520cf0b..0000000 --- a/send-backup +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -src=babar -dst=backup - -datasets=`zfs list -Ho name -r $src | tail -n +2 | cut -d/ -f2-` -for fs in $datasets; do - from=`zfs list -Ht snap -d 1 -o name -s creation $dst/$fs | tail -1 | cut -d@ -f2` - to=`zfs list -Ht snap -d 1 -o name -s creation $src/$fs | tail -1 | cut -d@ -f2` - - echo send $fs@$from to $fs@$to - if [ "x$from" != "x$to" ]; then - zfs send -RI babar/$fs@$from babar/$fs@$to | zfs recv backup/$fs - fi -done |