diff options
-rwxr-xr-x | snapshots-create.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/snapshots-create.sh b/snapshots-create.sh index d03c1b5..b397754 100755 --- a/snapshots-create.sh +++ b/snapshots-create.sh @@ -371,8 +371,11 @@ rm -v -f \ \( \ -regex '.*/(portage|gentoo)-[0-9]{6}.*' \ -o \ - -name 'snapshot-exclude*' \ - \) + -name 'snapshot-exclude.*' \ + -o \ + -name orig + \) \ + -delete # Cleanup old snapshots /usr/bin/find \ "${UPLOAD}" \ |