[Samba] Purge Trash Fileserver

Dario Lesca d.lesca at solinos.it
Tue Apr 25 14:44:41 UTC 2017

Il giorno mar, 25/04/2017 alle 10.30 -0300, Carlos A. P. Cunha ha
>     Thanks
>           for the answer.
>         The problem that this way is pretty much the same as my
>           find.
>         I want you to be able to delete the file based on the date
>           they were sent to the bin. As I gave in the
>           example:
>         The file has not been changed since 2015, when it is
>           deleted now in 2017, it goes to the bin, dated 2015, when
> the
>           find pass will erase, why it does not validate when it has
>           been deleted, but the file information.

You are right!

The option '-atime' use the access time, but the access time not change
when the file is delete from the share and samba move it from original
dir to trash.

It would be useful if samba update the atime when a file was deleted.

Then I do not know how to do what you want, without a specific shell
script which verifies whenever what files were added into trash from
the previous time, touch the atime to this new trash files and then
apply your or my delete procedure

If you find a better solution let me know.


Dario Lesca
(inviato dal mio Linux Fedora 25 Workstation)

More information about the samba mailing list