diff options
Diffstat (limited to 'ezjail-admin')
-rwxr-xr-x | ezjail-admin | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/ezjail-admin b/ezjail-admin index 986294e..0ef610f 100755 --- a/ezjail-admin +++ b/ezjail-admin | |||
@@ -1248,13 +1248,11 @@ snapshot) | |||
1248 | check_for_zfs_exist ${ezjail_zfs} || continue | 1248 | check_for_zfs_exist ${ezjail_zfs} || continue |
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 | echo RP: ${ezjail_retention_policy} | ||
1252 | if [ -z "${ezjail_retention_policy}" ]; then | 1251 | if [ -z "${ezjail_retention_policy}" ]; then |
1253 | /sbin/zfs snapshot ${ezjail_zfs}@ez-autosnap-`date +${ezjail_snap_date_format}` | 1252 | /sbin/zfs snapshot ${ezjail_zfs}@ez-autosnap-`date +${ezjail_snap_date_format}` |
1254 | else | 1253 | else |
1255 | 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} | \ |
1256 | 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` |
1257 | echo SN: ${snap_list} | ||
1258 | filteroldsnapshots ${snap_list} | 1256 | filteroldsnapshots ${snap_list} |
1259 | fi | 1257 | fi |
1260 | done | 1258 | done |