|
Post by spiken on Jun 16, 2008 2:52:18 GMT 7
I ve added a recycle bin folder into all my share in my n2100, and it works well.
Using WinSCP (for windows users) or putty just edit the /raid/sys/smb.conf file and add the following lines at the end of the global section.
vfs objects = recycle recycle:repository = .recycle recycle:keeptree = yes
You just have to restart the samba server using the following command: /img/bin/rc/rc.samba restart
Example of smb.conf file: [global] workgroup = WORKGROUP server string = %h deadtime = 15 [...] guest account = nobody guest only = yes vfs objects = recycle recycle:repository = .recycle recycle:keeptree = yes
Results: A .recycle folder will appear in your share as soon as you will delete file(s) or folder(s).
Issue: I ve tried to change the recycle repository to an other path/name without any success...
Improvement: The following command removes all recycled files older than seven days. find /raid -type f -atime +7 -wholename "/raid/*/.deleted/*" -exec rm {} \;
|
|
wengi
Full Member
Posts: 102
|
Post by wengi on Jun 26, 2008 14:18:02 GMT 7
|
|