mirror of
https://github.com/zfsonlinux/zfs-auto-snapshot.git
synced 2025-08-14 23:02:39 +02:00
Merge pull request #42 from FransUrbo/snapname_fix
Fix SNAPNAME and SNAPGLOB.
This commit is contained in:
@ -569,10 +569,10 @@ SNAPPROP="-o com.sun:auto-snapshot-desc='$opt_event'"
|
|||||||
DATE=$(date --utc +%F-%H%M)
|
DATE=$(date --utc +%F-%H%M)
|
||||||
|
|
||||||
# The snapshot name after the @ symbol.
|
# The snapshot name after the @ symbol.
|
||||||
SNAPNAME="$opt_prefix${opt_label:+$opt_sep$opt_label}-$DATE"
|
SNAPNAME="${opt_prefix:+$opt_prefix$opt_sep}${opt_label:+$opt_label}-$DATE"
|
||||||
|
|
||||||
# The expression for matching old snapshots. -YYYY-MM-DD-HHMM
|
# The expression for matching old snapshots. -YYYY-MM-DD-HHMM
|
||||||
SNAPGLOB="$opt_prefix${opt_label:+?$opt_label}????????????????"
|
SNAPGLOB="${opt_prefix:+$opt_prefix$opt_sep}${opt_label:+$opt_label}-???????????????"
|
||||||
|
|
||||||
if [ -n "$opt_do_snapshots" ]
|
if [ -n "$opt_do_snapshots" ]
|
||||||
then
|
then
|
||||||
|
Reference in New Issue
Block a user