Network Recycle bin on NS 7

NethServer Version: NethServer release 7.3.1611 (Final)
Module: File server, Account provider: Samba Active Directory

Hi guys,

Please help me with this.
Where can I find Network recycle bin on NS7?

I have tried to find something regarding this here
http://docs.nethserver.org/en/v7/shared_folder.html?highlight=network%20recycle%20bin#network-recycle-bin
but there is no location given.

According to this (for NS6)
Samba trash (recycle bin) autodelete old files?
it supposed to be in /var/lib/nethserver/ibay but is not.

TIA,
Gabriel

EDIT:

***********************************************
[root@pdc-ad ~]# getfacl /var/lib/nethserver/ibay/*
getfacl: Removing leading '/' from absolute path names
# file: var/lib/nethserver/ibay/public_abt
# owner: administrator@abt.ro
# group: domain\040users@abt.ro
# flags: -s-
user::rwx
group::r-x
other::---

# file: var/lib/nethserver/ibay/public_guest
# owner: administrator@abt.ro
# group: domain\040users@abt.ro
# flags: -s-
user::rwx
group::rwx
other::rwx

[root@pdc-ad ~]#

Did you try to remove something from shared folders? It should appears

IIRC it should appear within the shared folder as “Recycle Bin” once some file is deleted.

1 Like

@alefattorini
@dnutan

Yes, files and folders.

So you can mark us as “solvers” :smiley:

No, I just said that I deleted files and folders.
Unfortunately, the Recycle bin did not showed.:unamused:

I’m driving home and “I am short”.:wink:

@alefattorini
@dnutan

Very strange!

Now, the Recycle bin is appeared!
After a few hours but only in/for guest__abt folder and not with all file and folders deleted.

Please look at the time.

Last picture: I never read Recycle bin at that time! There were no Recycle bin!

I will test again tomorrow, on site (now I am through a VPN connection).

Hi guys,

After many create/delete/create/delete files and folders, the Recycle bin appears in every shared folder that I have.
Some time after a delay, some time, just after a file was deleted.

I will test again after I will reinstall NS7 from scratch.
On this installation I have tested also ZoneMinder, Urbackup (only installed on NS) and I have tried to install/remove other apps. Maybe something goes wrong regarding those attempts.

IMO, The Network Recycle bin is very important.

Other things:

1.Recycle bin don’t works for the user’s folder? I have created files and folders in my folder, I have deleted them, but no Recycle bin.

2.How to make Recycle bin protected to delete? In this moment, the user can delete the Recycle bin from the shared folder and this is bad. In this condition, I can say the Recycle bin is useless. Or, how to make Recycle bin visible only for Admin? Only Admin should be able to restore or empty the Recycle bin.

3."Keep files of the same name
If two files have the same name, they remain distinct in trash. By disabling this option, the last one overwrites the previous file."
Don’t works for folders.

2 Likes

You can use shell script

#!/bin/sh
find /var/lib/nethserver/ibay//Recycle -mindepth 1 -atime +30 -print0 | xargs -0r rm -rfv

deletes all in Recycle Bin older than 30 days.

Directly after Recycle is one star without empty space because it does not find Recycle Bin