Quantcast
Channel: SNBForums
Viewing all articles
Browse latest Browse all 94915

Delete USB files over x days old

$
0
0
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:

Code:
find /tmp/mnt/NAS/cctv/FI9821W_00626E4D07ED/record/* -mtime +1 -exec rm
{} \;
When I run that code in the SSH terminal nothing happens. No errors and files older than 1 day are still listed afterwards.

Code:
admin@NAS:/tmp/mnt/NAS/cctv/FI9821W_00626E4D07ED/record# ls -la
drwxrwxrwx    2 admin    root         32768 Aug 13 14:39 .
drwxrwxrwx    3...
Delete USB files over x days old

Viewing all articles
Browse latest Browse all 94915

Trending Articles