|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
# zfs-auto-snapshot for Linux
|
|
|
|
|
# Automatically create, rotate, and destroy periodic ZFS snapshots.
|
|
|
|
@ -29,6 +29,7 @@ opt_backup_incremental=''
|
|
|
|
|
opt_default_exclude=''
|
|
|
|
|
opt_dry_run=''
|
|
|
|
|
opt_event='-'
|
|
|
|
|
opt_fast_zfs_list=''
|
|
|
|
|
opt_keep=''
|
|
|
|
|
opt_label=''
|
|
|
|
|
opt_prefix='zfs-auto-snap'
|
|
|
|
@ -38,6 +39,9 @@ opt_setauto=''
|
|
|
|
|
opt_syslog=''
|
|
|
|
|
opt_skip_scrub=''
|
|
|
|
|
opt_verbose=''
|
|
|
|
|
opt_pre_snapshot=''
|
|
|
|
|
opt_post_snapshot=''
|
|
|
|
|
opt_do_snapshots=1
|
|
|
|
|
|
|
|
|
|
# Global summary statistics.
|
|
|
|
|
DESTRUCTION_COUNT='0'
|
|
|
|
@ -51,9 +55,10 @@ SNAPSHOTS_OLD=''
|
|
|
|
|
print_usage ()
|
|
|
|
|
{
|
|
|
|
|
echo "Usage: $0 [options] [-l label] <'//' | name [name...]>
|
|
|
|
|
--default-exclude Exclude objects if com.sun:auto-snapshot is unset.
|
|
|
|
|
--default-exclude Exclude datasets if com.sun:auto-snapshot is unset.
|
|
|
|
|
-d, --debug Print debugging messages.
|
|
|
|
|
-e, --event=EVENT Set the com.sun:auto-snapshot-desc property to EVENT.
|
|
|
|
|
--fast Use a faster zfs list invocation.
|
|
|
|
|
-n, --dry-run Print actions without actually doing anything.
|
|
|
|
|
-s, --skip-scrub Do not snapshot filesystems in scrubbing pools.
|
|
|
|
|
-h, --help Print this usage message.
|
|
|
|
@ -67,7 +72,8 @@ print_usage ()
|
|
|
|
|
-g, --syslog Write messages into the system log.
|
|
|
|
|
-r, --recursive Snapshot named filesystem and all descendants.
|
|
|
|
|
-v, --verbose Print info messages.
|
|
|
|
|
name Filesystem and volume names, or '//' for all ZFS objects.
|
|
|
|
|
--destroy-only Only destroy older snapshots, do not create new ones.
|
|
|
|
|
name Filesystem and volume names, or '//' for all ZFS datasets.
|
|
|
|
|
"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -104,7 +110,7 @@ print_log () # level, message, ...
|
|
|
|
|
;;
|
|
|
|
|
(inf*)
|
|
|
|
|
# test -n "$opt_syslog" && logger -t "$opt_prefix" -p daemon.info $*
|
|
|
|
|
test -n "$opt_verbose" && echo $*
|
|
|
|
|
test -z ${opt_quiet+x} && test -n "$opt_verbose" && echo $*
|
|
|
|
|
;;
|
|
|
|
|
(deb*)
|
|
|
|
|
# test -n "$opt_syslog" && logger -t "$opt_prefix" -p daemon.debug $*
|
|
|
|
@ -146,6 +152,8 @@ do_snapshots () # properties, flags, snapname, oldglob, [targets...]
|
|
|
|
|
local GLOB="$4"
|
|
|
|
|
local TARGETS="$5"
|
|
|
|
|
local KEEP=''
|
|
|
|
|
local LABEL="$6"
|
|
|
|
|
local RUNSNAP=1
|
|
|
|
|
|
|
|
|
|
# global DESTRUCTION_COUNT
|
|
|
|
|
# global SNAPSHOT_COUNT
|
|
|
|
@ -154,29 +162,41 @@ do_snapshots () # properties, flags, snapname, oldglob, [targets...]
|
|
|
|
|
|
|
|
|
|
for ii in $TARGETS
|
|
|
|
|
do
|
|
|
|
|
if do_run "zfs snapshot $PROPS $FLAGS '$ii@$NAME'"
|
|
|
|
|
if [ -n "$opt_do_snapshots" ]
|
|
|
|
|
then
|
|
|
|
|
SNAPSHOT_COUNT=$(( $SNAPSHOT_COUNT + 1 ))
|
|
|
|
|
else
|
|
|
|
|
WARNING_COUNT=$(( $WARNING_COUNT + 1 ))
|
|
|
|
|
continue
|
|
|
|
|
fi
|
|
|
|
|
if [ "$opt_pre_snapshot" != "" ]
|
|
|
|
|
then
|
|
|
|
|
do_run "$opt_pre_snapshot $ii $NAME" || RUNSNAP=0
|
|
|
|
|
fi
|
|
|
|
|
if [ $RUNSNAP -eq 1 ] && do_run "zfs snapshot $PROPS $FLAGS '$ii@$NAME'"
|
|
|
|
|
then
|
|
|
|
|
[ "$opt_post_snapshot" != "" ] && do_run "$opt_post_snapshot $ii $NAME"
|
|
|
|
|
SNAPSHOT_COUNT=$(( $SNAPSHOT_COUNT + 1 ))
|
|
|
|
|
else
|
|
|
|
|
WARNING_COUNT=$(( $WARNING_COUNT + 1 ))
|
|
|
|
|
continue
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Retain at most $opt_keep number of old snapshots of this filesystem,
|
|
|
|
|
# including the one that was just recently created.
|
|
|
|
|
test -z "$opt_keep" && continue
|
|
|
|
|
KEEP="$opt_keep"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# ASSERT: The old snapshot list is sorted by increasing age.
|
|
|
|
|
for jj in $SNAPSHOTS_OLD
|
|
|
|
|
# Match on both $GLOB *and* label.
|
|
|
|
|
while IFS=' ' read -ra arrjj
|
|
|
|
|
do
|
|
|
|
|
# Check whether this is an old snapshot of the filesystem.
|
|
|
|
|
if [ -z "${jj#$ii@$GLOB}" ]
|
|
|
|
|
if [ -z "${arrjj[1]#$ii@$GLOB}" ]
|
|
|
|
|
then
|
|
|
|
|
# Check whether the snapshot has the same label property
|
|
|
|
|
test "${arrjj[0]}" = "$LABEL" || continue
|
|
|
|
|
|
|
|
|
|
KEEP=$(( $KEEP - 1 ))
|
|
|
|
|
if [ "$KEEP" -le '0' ]
|
|
|
|
|
then
|
|
|
|
|
if do_run "zfs destroy $FLAGS '$jj'"
|
|
|
|
|
if do_run "zfs destroy -d $FLAGS '${arrjj[1]}'"
|
|
|
|
|
then
|
|
|
|
|
DESTRUCTION_COUNT=$(( $DESTRUCTION_COUNT + 1 ))
|
|
|
|
|
else
|
|
|
|
@ -184,7 +204,7 @@ do_snapshots () # properties, flags, snapname, oldglob, [targets...]
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
done <<< "$SNAPSHOTS_OLD"
|
|
|
|
|
done
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -193,9 +213,10 @@ do_snapshots () # properties, flags, snapname, oldglob, [targets...]
|
|
|
|
|
# {
|
|
|
|
|
|
|
|
|
|
GETOPT=$(getopt \
|
|
|
|
|
--longoptions=default-exclude,dry-run,skip-scrub,recursive \
|
|
|
|
|
--longoptions=default-exclude,dry-run,fast,skip-scrub,recursive \
|
|
|
|
|
--longoptions=event:,keep:,label:,prefix:,sep: \
|
|
|
|
|
--longoptions=debug,help,quiet,syslog,verbose \
|
|
|
|
|
--longoptions=pre-snapshot:,post-snapshot:,destroy-only \
|
|
|
|
|
--options=dnshe:l:k:p:rs:qgv \
|
|
|
|
|
-- "$@" ) \
|
|
|
|
|
|| exit 128
|
|
|
|
@ -226,6 +247,10 @@ do
|
|
|
|
|
fi
|
|
|
|
|
shift 2
|
|
|
|
|
;;
|
|
|
|
|
(--fast)
|
|
|
|
|
opt_fast_zfs_list='1'
|
|
|
|
|
shift 1
|
|
|
|
|
;;
|
|
|
|
|
(-n|--dry-run)
|
|
|
|
|
opt_dry_run='1'
|
|
|
|
|
shift 1
|
|
|
|
@ -256,7 +281,7 @@ do
|
|
|
|
|
while test "${#opt_prefix}" -gt '0'
|
|
|
|
|
do
|
|
|
|
|
case $opt_prefix in
|
|
|
|
|
([![:alnum:]_-.:\ ]*)
|
|
|
|
|
([![:alnum:]_.:\ -]*)
|
|
|
|
|
print_log error "The $1 parameter must be alphanumeric."
|
|
|
|
|
exit 130
|
|
|
|
|
;;
|
|
|
|
@ -278,7 +303,7 @@ do
|
|
|
|
|
;;
|
|
|
|
|
(--sep)
|
|
|
|
|
case "$2" in
|
|
|
|
|
([[:alnum:]_-.:\ ])
|
|
|
|
|
([[:alnum:]_.:\ -])
|
|
|
|
|
:
|
|
|
|
|
;;
|
|
|
|
|
('')
|
|
|
|
@ -302,6 +327,18 @@ do
|
|
|
|
|
opt_verbose='1'
|
|
|
|
|
shift 1
|
|
|
|
|
;;
|
|
|
|
|
(--pre-snapshot)
|
|
|
|
|
opt_pre_snapshot="$2"
|
|
|
|
|
shift 2
|
|
|
|
|
;;
|
|
|
|
|
(--post-snapshot)
|
|
|
|
|
opt_post_snapshot="$2"
|
|
|
|
|
shift 2
|
|
|
|
|
;;
|
|
|
|
|
(--destroy-only)
|
|
|
|
|
opt_do_snapshots=''
|
|
|
|
|
shift 1
|
|
|
|
|
;;
|
|
|
|
|
(--)
|
|
|
|
|
shift 1
|
|
|
|
|
break
|
|
|
|
@ -335,13 +372,23 @@ fi
|
|
|
|
|
ZPOOL_STATUS=$(env LC_ALL=C zpool status 2>&1 ) \
|
|
|
|
|
|| { print_log error "zpool status $?: $ZPOOL_STATUS"; exit 135; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ZFS_LIST=$(env LC_ALL=C zfs list -H -t filesystem,volume -s name \
|
|
|
|
|
-o name,com.sun:auto-snapshot,com.sun:auto-snapshot:"$opt_label") \
|
|
|
|
|
|| { print_log error "zfs list $?: $ZFS_LIST"; exit 136; }
|
|
|
|
|
|
|
|
|
|
SNAPSHOTS_OLD=$(env LC_ALL=C zfs list -H -t snapshot -S creation -o name) \
|
|
|
|
|
|| { print_log error "zfs list $?: $SNAPSHOTS_OLD"; exit 137; }
|
|
|
|
|
|
|
|
|
|
if [ -n "$opt_fast_zfs_list" ]
|
|
|
|
|
then
|
|
|
|
|
SNAPSHOTS_OLD=$(env LC_ALL=C zfs list -H -t snapshot -o com.sun:auto-snapshot-label,name -s name | \
|
|
|
|
|
grep $opt_prefix | \
|
|
|
|
|
awk '{ print substr( $0, length($0) - 14, length($0) ) " " $0}' | \
|
|
|
|
|
sort -r -k1,1 -k3,2 | \
|
|
|
|
|
awk '{ print substr( $0, 17, length($0) )}') \
|
|
|
|
|
|| { print_log error "zfs list $?: $SNAPSHOTS_OLD"; exit 137; }
|
|
|
|
|
else
|
|
|
|
|
SNAPSHOTS_OLD=$(env LC_ALL=C zfs list -H -t snapshot -S creation -o com.sun:auto-snapshot-label,name) \
|
|
|
|
|
|| { print_log error "zfs list $?: $SNAPSHOTS_OLD"; exit 137; }
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Verify that each argument is a filesystem or volume.
|
|
|
|
|
for ii in "$@"
|
|
|
|
@ -358,26 +405,26 @@ do
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# Get a list of pools that are being scrubbed.
|
|
|
|
|
ZPOOLS_SCRUBBING=$(echo "$ZFS_STATUS" | awk -F ': ' \
|
|
|
|
|
ZPOOLS_SCRUBBING=$(echo "$ZPOOL_STATUS" | awk -F ': ' \
|
|
|
|
|
'$1 ~ /^ *pool$/ { pool = $2 } ; \
|
|
|
|
|
$1 ~ /^ *scan$/ && $2 ~ /scrub in progress/ { print pool }' \
|
|
|
|
|
| sort )
|
|
|
|
|
|
|
|
|
|
# Get a list of pools that cannot do a snapshot.
|
|
|
|
|
ZPOOLS_NOTREADY=$(echo "$ZFS_STATUS" | awk -F ': ' \
|
|
|
|
|
ZPOOLS_NOTREADY=$(echo "$ZPOOL_STATUS" | awk -F ': ' \
|
|
|
|
|
'$1 ~ /^ *pool$/ { pool = $2 } ; \
|
|
|
|
|
$1 ~ /^ *state$/ && $2 !~ /ONLINE|DEGRADED/ { print pool } ' \
|
|
|
|
|
| sort)
|
|
|
|
|
|
|
|
|
|
# Get a list of objects for which snapshots are explicitly disabled.
|
|
|
|
|
# Get a list of datasets for which snapshots are explicitly disabled.
|
|
|
|
|
NOAUTO=$(echo "$ZFS_LIST" | awk -F '\t' \
|
|
|
|
|
'tolower($2) ~ /false/ || tolower($3) ~ /false/ {print $1}')
|
|
|
|
|
|
|
|
|
|
# If the --default-exclude flag is set, then exclude all objects that lack
|
|
|
|
|
# If the --default-exclude flag is set, then exclude all datasets that lack
|
|
|
|
|
# an explicit com.sun:auto-snapshot* property. Otherwise, include them.
|
|
|
|
|
if [ -n "$opt_default_exclude" ]
|
|
|
|
|
then
|
|
|
|
|
# Get a list of objects for which snapshots are explicitly enabled.
|
|
|
|
|
# Get a list of datasets for which snapshots are explicitly enabled.
|
|
|
|
|
CANDIDATES=$(echo "$ZFS_LIST" | awk -F '\t' \
|
|
|
|
|
'tolower($2) ~ /true/ || tolower($3) ~ /true/ {print $1}')
|
|
|
|
|
else
|
|
|
|
@ -386,20 +433,21 @@ else
|
|
|
|
|
'tolower($2) !~ /false/ && tolower($3) !~ /false/ {print $1}')
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Initialize the list of objects that will get a recursive snapshot.
|
|
|
|
|
# Initialize the list of datasets that will get a recursive snapshot.
|
|
|
|
|
TARGETS_RECURSIVE=''
|
|
|
|
|
|
|
|
|
|
# Initialize the list of objects that will get a non-recursive snapshot.
|
|
|
|
|
# Initialize the list of datasets that will get a non-recursive snapshot.
|
|
|
|
|
TARGETS_REGULAR=''
|
|
|
|
|
|
|
|
|
|
for ii in $CANDIDATES
|
|
|
|
|
do
|
|
|
|
|
# Qualify object names so variable globbing works properly.
|
|
|
|
|
# Qualify dataset names so variable globbing works properly.
|
|
|
|
|
# Suppose ii=tanker/foo and jj=tank sometime during the loop.
|
|
|
|
|
# Just testing "$ii" != ${ii#$jj} would incorrectly match.
|
|
|
|
|
iii="$ii/"
|
|
|
|
|
|
|
|
|
|
# Exclude objects that are not named on the command line.
|
|
|
|
|
|
|
|
|
|
# Exclude datasets that are not named on the command line.
|
|
|
|
|
IN_ARGS='0'
|
|
|
|
|
for jj in "$@"
|
|
|
|
|
do
|
|
|
|
@ -413,13 +461,13 @@ do
|
|
|
|
|
continue
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Exclude objects in pools that cannot do a snapshot.
|
|
|
|
|
# Exclude datasets in pools that cannot do a snapshot.
|
|
|
|
|
for jj in $ZPOOLS_NOTREADY
|
|
|
|
|
do
|
|
|
|
|
# Ibid regarding iii.
|
|
|
|
|
jjj="$jj/"
|
|
|
|
|
|
|
|
|
|
# Check whether the pool name is a prefix of the object name.
|
|
|
|
|
# Check whether the pool name is a prefix of the dataset name.
|
|
|
|
|
if [ "$iii" != "${iii#$jjj}" ]
|
|
|
|
|
then
|
|
|
|
|
print_log info "Excluding $ii because pool $jj is not ready."
|
|
|
|
@ -427,13 +475,13 @@ do
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# Exclude objects in scrubbing pools if the --skip-scrub flag is set.
|
|
|
|
|
# Exclude datasets in scrubbing pools if the --skip-scrub flag is set.
|
|
|
|
|
test -n "$opt_skip_scrub" && for jj in $ZPOOLS_SCRUBBING
|
|
|
|
|
do
|
|
|
|
|
# Ibid regarding iii.
|
|
|
|
|
jjj="$jj/"
|
|
|
|
|
|
|
|
|
|
# Check whether the pool name is a prefix of the object name.
|
|
|
|
|
# Check whether the pool name is a prefix of the dataset name.
|
|
|
|
|
if [ "$iii" != "${iii#$jjj}" ]
|
|
|
|
|
then
|
|
|
|
|
print_log info "Excluding $ii because pool $jj is scrubbing."
|
|
|
|
@ -446,17 +494,17 @@ do
|
|
|
|
|
# Ibid regarding iii.
|
|
|
|
|
jjj="$jj/"
|
|
|
|
|
|
|
|
|
|
# The --recusive switch only matters for non-wild arguments.
|
|
|
|
|
# The --recursive switch only matters for non-wild arguments.
|
|
|
|
|
if [ -z "$opt_recursive" -a "$1" != '//' ]
|
|
|
|
|
then
|
|
|
|
|
# Snapshot this object non-recursively.
|
|
|
|
|
# Snapshot this dataset non-recursively.
|
|
|
|
|
print_log debug "Including $ii for regular snapshot."
|
|
|
|
|
TARGETS_REGULAR="${TARGETS_REGULAR:+$TARGETS_REGULAR }$ii" # nb: \t
|
|
|
|
|
continue 2
|
|
|
|
|
# Check whether the candidate name is a prefix of any excluded object name.
|
|
|
|
|
# Check whether the candidate name is a prefix of any excluded dataset name.
|
|
|
|
|
elif [ "$jjj" != "${jjj#$iii}" ]
|
|
|
|
|
then
|
|
|
|
|
# Snapshot this object non-recursively.
|
|
|
|
|
# Snapshot this dataset non-recursively.
|
|
|
|
|
print_log debug "Including $ii for regular snapshot."
|
|
|
|
|
TARGETS_REGULAR="${TARGETS_REGULAR:+$TARGETS_REGULAR }$ii" # nb: \t
|
|
|
|
|
continue 2
|
|
|
|
@ -468,7 +516,7 @@ do
|
|
|
|
|
# Ibid regarding iii.
|
|
|
|
|
jjj="$jj/"
|
|
|
|
|
|
|
|
|
|
# Check whether any included object is a prefix of the candidate name.
|
|
|
|
|
# Check whether any included dataset is a prefix of the candidate name.
|
|
|
|
|
if [ "$iii" != "${iii#$jjj}" ]
|
|
|
|
|
then
|
|
|
|
|
print_log debug "Excluding $ii because $jj includes it recursively."
|
|
|
|
@ -489,29 +537,46 @@ done
|
|
|
|
|
|
|
|
|
|
# Linux lacks SMF and the notion of an FMRI event, but always set this property
|
|
|
|
|
# because the SUNW program does. The dash character is the default.
|
|
|
|
|
SNAPPROP="-o com.sun:auto-snapshot-desc='$opt_event'"
|
|
|
|
|
SNAPPROP="-o com.sun:auto-snapshot-desc='$opt_event' -o com.sun:auto-snapshot-label=$opt_label"
|
|
|
|
|
|
|
|
|
|
# ISO style date; fifteen characters: YYYY-MM-DD-HHMM
|
|
|
|
|
# On Solaris %H%M expands to 12h34.
|
|
|
|
|
DATE=$(date +%F-%H%M)
|
|
|
|
|
DATE=$(date --utc +%F-%H%M)
|
|
|
|
|
|
|
|
|
|
# The snapshot name after the @ symbol.
|
|
|
|
|
SNAPNAME="$opt_prefix${opt_label:+$opt_sep$opt_label-$DATE}"
|
|
|
|
|
SNAPNAME="$opt_prefix$opt_sep$DATE"
|
|
|
|
|
|
|
|
|
|
# The expression for matching old snapshots. -YYYY-MM-DD-HHMM
|
|
|
|
|
SNAPGLOB="$opt_prefix${opt_label:+?$opt_label}????????????????"
|
|
|
|
|
SNAPGLOB="${opt_prefix}????????????????"
|
|
|
|
|
|
|
|
|
|
test -n "$TARGETS_REGULAR" \
|
|
|
|
|
&& print_log info "Doing regular snapshots of $TARGETS_REGULAR"
|
|
|
|
|
if [ -n "$opt_do_snapshots" ]
|
|
|
|
|
then
|
|
|
|
|
test -n "$TARGETS_REGULAR" \
|
|
|
|
|
&& print_log info "Doing regular snapshots of $TARGETS_REGULAR"
|
|
|
|
|
|
|
|
|
|
test -n "$TARGETS_RECURSIVE" \
|
|
|
|
|
&& print_log info "Doing recursive snapshots of $TARGETS_RECURSIVE"
|
|
|
|
|
test -n "$TARGETS_RECURSIVE" \
|
|
|
|
|
&& print_log info "Doing recursive snapshots of $TARGETS_RECURSIVE"
|
|
|
|
|
|
|
|
|
|
if test -n "$opt_keep" && [ "$opt_keep" -ge "1" ]
|
|
|
|
|
then
|
|
|
|
|
print_log info "Destroying all but the newest $opt_keep snapshots of each dataset."
|
|
|
|
|
fi
|
|
|
|
|
elif test -n "$opt_keep" && [ "$opt_keep" -ge "1" ]
|
|
|
|
|
then
|
|
|
|
|
test -n "$TARGETS_REGULAR" \
|
|
|
|
|
&& print_log info "Destroying all but the newest $opt_keep snapshots of $TARGETS_REGULAR"
|
|
|
|
|
|
|
|
|
|
test -n "$TARGETS_RECURSIVE" \
|
|
|
|
|
&& print_log info "Recursively destroying all but the newest $opt_keep snapshots of $TARGETS_RECURSIVE"
|
|
|
|
|
else
|
|
|
|
|
print_log notice "Only destroying snapshots, but count of snapshots to preserve not given. Nothing to do."
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
test -n "$opt_dry_run" \
|
|
|
|
|
&& print_log info "Doing a dry run. Not running these commands..."
|
|
|
|
|
|
|
|
|
|
do_snapshots "$SNAPPROP" "" "$SNAPNAME" "$SNAPGLOB" "$TARGETS_REGULAR"
|
|
|
|
|
do_snapshots "$SNAPPROP" "-r" "$SNAPNAME" "$SNAPGLOB" "$TARGETS_RECURSIVE"
|
|
|
|
|
do_snapshots "$SNAPPROP" "" "$SNAPNAME" "$SNAPGLOB" "$TARGETS_REGULAR" "$opt_label"
|
|
|
|
|
do_snapshots "$SNAPPROP" "-r" "$SNAPNAME" "$SNAPGLOB" "$TARGETS_RECURSIVE" "$opt_label"
|
|
|
|
|
|
|
|
|
|
print_log notice "@$SNAPNAME," \
|
|
|
|
|
"$SNAPSHOT_COUNT created," \
|
|
|
|
|