Hi everyone,
New Synology user here, having used a QNAP NAS for many years, when it had a failed motherboard around Christmas time I decided to try Synology - a DS720+
One of the tasks I use the NAS for is storing snapshots from several IP cameras. On the QNAP I added lines to the crontab to auto-delete these files when they were older than e.g. 7 days.
I was pleased to see that Synology provide a Task Scheduler to (hopefully!) save having to SSH in and edit the crontab file, so I have created some simple user-defined scripts in task scheduler, e.g.
find /volume1/FrontCam/ -type f -mtime +7 -delete
When I enable this task and click on "Run" it works perfectly. However, when left to run automatically once a day it does nothing at all. Output.log and Script.log files are created at the run time, which suggests that something is happening, but the output.log file is empty and the files are not deleted.
It makes no difference if I run it as User, admin or root.
A search indicates that this question, or a very similar one, has been asked several times in various forums but, as far as I can tell, has never been answered with a solution that works.
Can anyone shed any light on this and suggest how I can get it to work?
Thanks
New Synology user here, having used a QNAP NAS for many years, when it had a failed motherboard around Christmas time I decided to try Synology - a DS720+
One of the tasks I use the NAS for is storing snapshots from several IP cameras. On the QNAP I added lines to the crontab to auto-delete these files when they were older than e.g. 7 days.
I was pleased to see that Synology provide a Task Scheduler to (hopefully!) save having to SSH in and edit the crontab file, so I have created some simple user-defined scripts in task scheduler, e.g.
find /volume1/FrontCam/ -type f -mtime +7 -delete
When I enable this task and click on "Run" it works perfectly. However, when left to run automatically once a day it does nothing at all. Output.log and Script.log files are created at the run time, which suggests that something is happening, but the output.log file is empty and the files are not deleted.
It makes no difference if I run it as User, admin or root.
A search indicates that this question, or a very similar one, has been asked several times in various forums but, as far as I can tell, has never been answered with a solution that works.
Can anyone shed any light on this and suggest how I can get it to work?
Thanks