Time and Date on files
Heya,
I ve got a Samba server with a shared folder.
This folder is used to exchange files internally in the office,
and I need a file copied onto it to be deleted automatically after 48 hours.
I ve been using a script in cron.hourly:
find "/raid/File Exchange" -mtime +2 -type f -exec rm -rf {} \;
which would work fine, only that when I copy the file to the samba server,
the "created" and "modified" fields stay the same. So, if the script is in a cron.hourly, it deletes all files on the hour rather than after 48.
How do I work around this?
Thanks for any help
Paul
|