search for: dirmtime

Displaying 5 results from an estimated 5 matches for "dirmtime".

2017 Apr 25
3
Purge Trash Fileserver
Hello My fileserver is a samba 4.5.4, in Ubuntu 14.04, is all ok. My question is, Have the recycle bin enabled, and would like a way to rotate the files, already have something today that is via find Find /mnt/samba -depth -mtime +30 -print -delete This works however, it will delete the files inside the destination with more than 30 days, but this more than 30 days is not when it went to
2017 May 02
2
Purge Trash Fileserver
...day. >> >> >> What I would like is to see an alternative to find or when it goes >> to >> the bin it is changed (date) to find it to be correct. >> >> Any idea ? > > > This is what I do for clear my trash: > > # echo '/usr/sbin/tmpwatch --dirmtime --atime --force $[24*30] /u/samba/cestino/' > /etc/cron.daily/cestino > # chmod 755 /etc/cron.daily/cestino > > The tricks is '--atime', then if you want still use your command with > find, you can try '-atime' find option. Fortunately, many of us turn mount our...
2017 Apr 25
3
Purge Trash Fileserver
...same day. >> >> >> What I would like is to see an alternative to find or when it goes >> to >> the bin it is changed (date) to find it to be correct. >> >> Any idea ? > > This is what I do for clear my trash: > > # echo '/usr/sbin/tmpwatch --dirmtime --atime --force $[24*30] /u/samba/cestino/' > /etc/cron.daily/cestino > # chmod 755 /etc/cron.daily/cestino > > The tricks is '--atime', then if you want still use your command with > find, you can try '-atime' find option. > > Hope this help > > Thank...
2017 Apr 25
0
Purge Trash Fileserver
...this file, even if it was deleted on the same day. > > > What I would like is to see an alternative to find or when it goes > to  > the bin it is changed (date) to find it to be correct. > > Any idea ? This is what I do for clear my trash: # echo '/usr/sbin/tmpwatch --dirmtime --atime --force $[24*30] /u/samba/cestino/' > /etc/cron.daily/cestino # chmod 755 /etc/cron.daily/cestino The tricks is '--atime', then if you want still use your command with find, you can try '-atime' find option. Hope this help Thanks -- Dario Lesca (inviato dal mio L...
2017 May 02
0
Purge Trash Fileserver
...> What I would like is to see an alternative to find or when it goes >>> to >>> the bin it is changed (date) to find it to be correct. >>> >>> Any idea ? >> >> This is what I do for clear my trash: >> >> # echo '/usr/sbin/tmpwatch --dirmtime --atime --force $[24*30] /u/samba/cestino/' > /etc/cron.daily/cestino >> # chmod 755 /etc/cron.daily/cestino >> >> The tricks is '--atime', then if you want still use your command with >> find, you can try '-atime' find option. > Fortunately, many o...