cron.daily block snapshots
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 24 Jun 2014 17:36:53 +0000 (19:36 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 24 Jun 2014 17:36:53 +0000 (19:36 +0200)
bin/daily-block-snapshot [new file with mode: 0755]

diff --git a/bin/daily-block-snapshot b/bin/daily-block-snapshot
new file mode 100755 (executable)
index 0000000..50aa8de
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+. /usr/share/ganeti/extstorage/zfs/defaults.sh
+
+zfs list -r -o name -t volume -H $EXTP_ZFS | xargs -i zfs snap {}@`date +%Y-%m-%d`