diff options
author | Sven Gothel <[email protected]> | 2013-09-20 22:44:39 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-09-20 22:44:39 +0200 |
commit | 184d51b6cb610b482503c0ece3129130e49ba211 (patch) | |
tree | 60fa984887bce72a100c62796e29f1f789b24982 | |
parent | 41a3430f3f9c5c250d8d2afb5021752553d66397 (diff) |
ZFS Backup: Add zfs-new-snap.sh script to generate new snapshot on all local data_sets
-rw-r--r-- | backup/zfs-new-snap.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/backup/zfs-new-snap.sh b/backup/zfs-new-snap.sh new file mode 100644 index 0000000..1a856a5 --- /dev/null +++ b/backup/zfs-new-snap.sh @@ -0,0 +1,11 @@ +#! /bin/bash + +pool=jausoft_com +snap=20130920 + +zfs snapshot $pool@$snap +zfs snapshot -r $pool@$snap +zfs snapshot -r $pool/data@$snap +zfs snapshot -r $pool/services@$snap +zfs snapshot -r $pool/system@$snap +zfs snapshot -r $pool/users@$snap |