Skip to content

Commit

Permalink
Names of snaps have changed from using - to _, so cleanup pattern nee…
Browse files Browse the repository at this point in the history
…ds to be adopted as well.
  • Loading branch information
AM-SoFT Support authored and ams-tschoening committed Oct 31, 2022
1 parent 35ec16f commit c6e7367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion btrfs-auto-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ fi

snap_name="${prefix}_${label}_$(date +%F-%H%M)"
snap_patt='[[:digit:]]{4}-[[:digit:]]{2}-[[:digit:]]{2}-[[:digit:]]{4}'
snap_patt="${prefix}_${label}_${snap_patt}"
snap_patt="${prefix}_${label}[_-]${snap_patt}"

btrfs_mounts="$(btrfs_mounts_calc)"
btrfs_subvols_txt="$(echo "${btrfs_mounts}" | btrfs_subvols_calc)"
Expand Down

0 comments on commit c6e7367

Please sign in to comment.