Hi,
I've setup a cron to delete files on a mounted USB drive over than x amount of days old. I'm testing it right now with 1 day:
When I run that code in the SSH terminal nothing happens. No errors and files older than 1 day are still listed afterwards.
Delete USB files over x days old
I've setup a cron to delete files on a mounted USB drive over than x amount of days old. I'm testing it right now with 1 day:
Code:
find /tmp/mnt/NAS/cctv/FI9821W_00626E4D07ED/record/* -mtime +1 -exec rm {} \;
Code:
admin@NAS:/tmp/mnt/NAS/cctv/FI9821W_00626E4D07ED/record# ls -la drwxrwxrwx 2 admin root 32768 Aug 13 14:39 . drwxrwxrwx 3...