From: Dobrica Pavlinusic Date: Tue, 24 Jun 2014 17:36:53 +0000 (+0200) Subject: cron.daily block snapshots X-Git-Url: http://git.rot13.org/?p=ganeti-extstorage-zfs;a=commitdiff_plain;h=d14afe196b9ac6771b7000f5f63c1f64ec40c226;hp=d1f9e7e31cebc545867b0462eafe7093e7c918f3;ds=sidebyside cron.daily block snapshots --- diff --git a/bin/daily-block-snapshot b/bin/daily-block-snapshot new file mode 100755 index 0000000..50aa8de --- /dev/null +++ b/bin/daily-block-snapshot @@ -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`