Skip to content
Snippets Groups Projects
Commit 37561326 authored by Florent Thiery's avatar Florent Thiery
Browse files

purge empty folders too, refs #24829

parent a35348ba
No related branches found
No related tags found
No related merge requests found
# purge mediaimport files that are older than 60 days
0 23 * * * root /usr/bin/find /home/ftp/storage/incoming/ -type f -mtime +60 -delete
# purge empty folders
0 23 * * * root /usr/bin/find /home/ftp/storage -type d -empty -name thumbnails -delete
0 23 * * * root /usr/bin/find /home/ftp/storage -type d -empty -name "*20*-*" -delete
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment