hi to all and i hope, someone can help me. i did not found an solution, here is my problem/issue. i setup samba 4.9.5+dfsg-5+deb10u1 (debian10) with vfs recycle. now: - i create an file (maybe simple txt), edit, save -> ok - i open the file again an save -> copy of the file goes to recycle repository - if i use recycle:versions = Yes, i got Copy # of ... everytime i save the file - evertime i save the file, the copy in the repo is updated my goal is, to use only the recycle, if something was deleted. did i miss something or is this a feature, a bug an issue ... here my config: [global] workgroup = BACKOFEN log file = /var/log/samba/log.%m max log size = 1000 logging = file panic action = /usr/share/samba/panic-action %d server role = standalone server obey pam restrictions = yes unix password sync = yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . pam password change = yes map to guest = bad user usershare allow guests = no directory mask = 0750 create mask = 0750 force create mode = 750 force directory mode = 750 [daten] comment = daten komplett path = /srv/samba/daten/files guest ok = no read only = no writeable = yes valid users = @backofen write list = @backofen # Enable the recycle bin #vfs object = acl_xattr recycle vfs objects = recycle recycle:repository = /srv/samba/daten/papierkorb recycle:touch = Yes recycle:keeptree = Yes recycle:versions = no #recycle:versions = Yes thanks for any help ... kind regards, ronny
Rowland penny
2020-Apr-16 08:55 UTC
[Samba] samba recycle - modified files going into repository
On 16/04/2020 09:18, rl via samba wrote:> i setup samba 4.9.5+dfsg-5+deb10u1 (debian10) with vfs recycle. > now: > - i create an file (maybe simple txt), edit, save -> ok > - i open the file again an save -> copy of the file goes to recycle repository > - if i use recycle:versions = Yes, i got Copy # of ... everytime i save the > file > - evertime i save the file, the copy in the repo is updated > > my goal is, to use only the recycle, if something was deleted. > did i miss something or is this a feature, a bug an issue ...What program is opening the existing file ? Some programs do this: they open an existing file as filename.some_extension, the filename.some_extension is what you alter and when you save it, the original file is deleted and filename.some_extension is renamed to 'filename'. So, in this case, recycle is just doing the correct thing. Rowland
hi rowland and thank you ... banging my head against the wall. you are right. i tested with plasma kwrite and this is doing, as you said. i also testet photoshop and i see the same. after that, i used "the great" paint and no files where moved to recycle. dammit never thought about this. thanks a lot an "stay at home" ... strange time kind regards, ronny On Thursday, 16 April 2020 10:55:16 CEST Rowland penny via samba wrote:> On 16/04/2020 09:18, rl via samba wrote: > > i setup samba 4.9.5+dfsg-5+deb10u1 (debian10) with vfs recycle. > > now: > > - i create an file (maybe simple txt), edit, save -> ok > > - i open the file again an save -> copy of the file goes to recycle > > repository - if i use recycle:versions = Yes, i got Copy # of ... > > everytime i save the file > > - evertime i save the file, the copy in the repo is updated > > > > my goal is, to use only the recycle, if something was deleted. > > did i miss something or is this a feature, a bug an issue ... > > What program is opening the existing file ? > > Some programs do this: they open an existing file as > filename.some_extension, the filename.some_extension is what you alter > and when you save it, the original file is deleted and > filename.some_extension is renamed to 'filename'. So, in this case, > recycle is just doing the correct thing. > > Rowland