Bug 5743 - recycle:touch_mtime or recycle:touch do not function
Summary: recycle:touch_mtime or recycle:touch do not function
Status: RESOLVED DUPLICATE of bug 4983
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: VFS (show other bugs)
Version: 3.0.31
Hardware: All Windows XP
: P3 major
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-08 10:38 UTC by David Herselman
Modified: 2021-08-11 19:45 UTC (History)
0 users

See Also:


Attachments
recycle:touch patch backported from SVN SAMBA_3_2_0 r23691 (GPLv2) (1.18 KB, patch)
2008-12-12 05:53 UTC, SATOH Fumiyasu
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Herselman 2008-09-08 10:38:55 UTC
Sample share from smb.conf:
[homes]
   comment = User Directory
   guest ok = no
   browseable = no
   writeable = yes
   printable = no
   valid users = %S
   create mode = 0600
   directory mode = 0700
   force group = users
   vfs objects = recycle
      recycle:repository = .recycle
      recycle:keeptree  = yes
      recycle:touch = yes
      recycle:versions = yes
      recycle:maxsize = 0
      recycle:exclude = *.tmp *.temp *.bkf *.~?? ~$*
      recycle:exclude_dir = /tmp
      recycle:noversions = *.pst

Cleanup script which is run daily:
find /home/*/.recycle -type f -mtime +7 -print0 | xargs -r0 rm -f;
find /home/*/.recycle -type d -empty -printf '"%p"\n' | \
  grep -v .recycle\"$ | xargs -r rmdir;


Recycle bin works perfectly except that it doesn't 'touch' files moved to
the recycle bin. All old files are subsequently immediately removed...

PS: Could try and write this with the '-atime' find parametre but it would
    then never age as we run a 'chmod 770' on the .recycle share nigthly...
Comment 1 SATOH Fumiyasu 2008-12-12 05:53:13 UTC
Created attachment 3808 [details]
recycle:touch patch backported from SVN SAMBA_3_2_0 r23691 (GPLv2)

This is a duplicate of bug #4983.
Comment 2 Björn Jacke 2021-08-11 19:45:42 UTC

*** This bug has been marked as a duplicate of bug 4983 ***