summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'snapshots-create.sh')
-rwxr-xr-xsnapshots-create.sh7
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}" \