summary |
---|
A little command to create self-cleaning folders and how to clean up after Nextcloud |
Add following to the (roots-)crontab: @daily find "[TARGET_FOLDER]" -mindepth 1 -mtime +1 -delete >/dev/null 2>&1
First locate and make sure they are not important...
find ./ -name '*.~*'
Then delete them...
find ./ -name '*.~*' -exec rm -rfv {} \;