All pastes #578757 Raw Edit

Mine

public text v1 · immutable
·published 2007-06-20 11:30 UTC
rendered paste body
set $(date)
#remove old files
#find all files under /backup/backup older than 4 days, and delete
find /backup/backup -type f -mtime +4 | xargs rm -f
#find all files newer than FILE, and delete
find /backup/backup -type f -newer /backup -exec rm \{\} \;