1. open your text editor
2. Directory remove for 3 days ago at "/volume1/recording"
#!/bin/sh
find "/volume1/recording"- type d -mtime +3 -exec rm -rf{} \;
for 50 days ago
#!/bin/sh
find "/volume1/recording"- type d -mtime +50 -exec rm -rf{} \;
3. File remove for 3 days ago
#!/bin/sh
find "/volume1/recording"- type f -mtime +3 -exec rm -rf{} \;
4. Save file as "auto_del.sh"
sh file is for script.
5. Synology control panel - job scheduler - user defined script
add here.
Comments
Post a Comment