Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/zfs-auto-snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -463,9 +463,11 @@ then
CANDIDATES=$(echo "$ZFS_LIST" | awk -F '\t' \
'tolower($2) ~ /true/ || tolower($3) ~ /true/ {print $1}')
else
# Invert the NOAUTO list.
# Get a list of datasets for which snapshots are either not explicitly
# disabled, or explicitly enabled for the specific label.
CANDIDATES=$(echo "$ZFS_LIST" | awk -F '\t' \
'tolower($2) !~ /false/ && tolower($3) !~ /false/ {print $1}')
'(tolower($2) !~ /false/ && tolower($3) !~ /false/) \
|| tolower($3) ~ /true/ {print $1}')
fi

# Initialize the list of datasets that will get a recursive snapshot.
Expand Down