diff options
author | erdgeist <erdgeist@erdgeist.org> | 2013-04-24 03:06:00 +0000 |
---|---|---|
committer | erdgeist <erdgeist@erdgeist.org> | 2013-04-24 03:06:00 +0000 |
commit | 9dcfe49b30e3bea80273d8e1bc9b852a3e48b431 (patch) | |
tree | d7c9e334a2621383377e95db295f2219bdc2413e | |
parent | 377e133248a71b59943cfd578edc0b86aea78dbd (diff) |
ezsnaps are recursive
-rwxr-xr-x | ezjail-admin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ezjail-admin b/ezjail-admin index 0ef610f..8e24af0 100755 --- a/ezjail-admin +++ b/ezjail-admin | |||
@@ -1249,7 +1249,7 @@ snapshot) | |||
1249 | zfs_retention_policy=`/sbin/zfs get -H -o value ezjail:autosnap_retention ${ezjail_zfs}` | 1249 | zfs_retention_policy=`/sbin/zfs get -H -o value ezjail:autosnap_retention ${ezjail_zfs}` |
1250 | [ "${zfs_retention_policy}" = "-" ] || ezjail_retention_policy="${zfs_retention_policy}" | 1250 | [ "${zfs_retention_policy}" = "-" ] || ezjail_retention_policy="${zfs_retention_policy}" |
1251 | if [ -z "${ezjail_retention_policy}" ]; then | 1251 | if [ -z "${ezjail_retention_policy}" ]; then |
1252 | /sbin/zfs snapshot ${ezjail_zfs}@ez-autosnap-`date +${ezjail_snap_date_format}` | 1252 | /sbin/zfs snapshot -r ${ezjail_zfs}@ez-autosnap-`date +${ezjail_snap_date_format}` |
1253 | else | 1253 | else |
1254 | snap_list=`/sbin/zfs list -H -t snapshot -o name -S creation -r ${ezjail_zfs} | \ | 1254 | snap_list=`/sbin/zfs list -H -t snapshot -o name -S creation -r ${ezjail_zfs} | \ |
1255 | grep ^${ezjail_zfs}@ez-autosnap- | cut -d '@' -f 2 | cut -d '-' -f 3` | 1255 | grep ^${ezjail_zfs}@ez-autosnap- | cut -d '@' -f 2 | cut -d '-' -f 3` |