[Samba] VFS recyclebin module exclude directory
Brad C
bradleydanecook at gmail.com
Tue Aug 21 08:30:15 GMT 2007
Hi There,
The Samba VFS recyclebin works brilliantly, though I need to exclude certain
directories from the recyclebin as they are cleared out and re-created
nightly. This means that in no time im scrambling for space, ive tried the
recycle:exclude_dir = syntax as below with both the full path and the path
visible at share level and both arent excluding, is there something basic im
missing?
[documents at xcompany]
comment = Document share
path = /data
create mask = 0770
writeable = yes
guest ok = yes
hide files = /Recycle Bin/*
veto files = /Recycle Bin/*
delete veto files = no
vfs objects = recycle
recycle:repository = Recycle Bin/%U
recycle:directory_mode = 0770
recycle:keeptree = Yes
recycle:touch_mtime = Yes
recycle:versions = Yes
recycle:maxsize = 0
recycle:exclude_dir = /data/SOFTWARE/BACKUPS,/SOFTWARE/BACKUPS
on another note, for those of you that want to clear out their recyclebin
files older than X days, you might find this script useful.
#!/bin/bash
# deletes only files older than 60 days
find /data/Recycle\ Bin/ -type f -mtime +60 | xargs rm
BraD
More information about the samba
mailing list