diff options
Diffstat (limited to 'snapshots-create.sh')
-rwxr-xr-x | snapshots-create.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/snapshots-create.sh b/snapshots-create.sh index 9edbd36..06b9723 100755 --- a/snapshots-create.sh +++ b/snapshots-create.sh @@ -362,12 +362,13 @@ write_time_log "END SYMLINK $(date -u)" write_time_log "START CLEANUP $(date -u)" # Cleanup immediate stuff -rm -v -f \ +rm -f \ "${TEMP}"/orig \ "${TEMP}"/"${FILENAME%.bz2}"{.bz2,.xz,}{,.umd5sum} \ "${TEMP}"/"${FILENAME_NEW%.xz}"{.bz2,.xz,}{,.umd5sum} \ "${TEMP}"/"${EXCLUSION_LIST}" \ || exit $? + # Cleanup older stuff that might have leaked /usr/bin/find \ "${TEMP}" \ @@ -383,6 +384,7 @@ rm -v -f \ -name orig \ \) \ -delete + # Cleanup old snapshots /usr/bin/find \ "${UPLOAD}" \ |