Difference between revisions of "RecycleBin"

From SME Server
Jump to navigationJump to search
(KeepVersions command added)
(warning re log off & on added)
Line 11: Line 11:
 
  db accounts setprop ibayname KeepVersions enabled  
 
  db accounts setprop ibayname KeepVersions enabled  
 
  signal-event ibay-modify ibayname
 
  signal-event ibay-modify ibayname
 +
 +
{{Warning box|After making changes to the ibay (with the commands shown), you need to logoff your workstation and log back in again so those new access permissions are included in your login session. Recycle Bin will then function as expected.}}
 +
  
 
The Recycle Bin folder will be created automatically the first time a file is deleted, so you will not see the folder until you delete something.
 
The Recycle Bin folder will be created automatically the first time a file is deleted, so you will not see the folder until you delete something.

Revision as of 22:41, 10 October 2008

Problem

Deleted files in ibays are lost forever.

Scenario

This has been a long known issue for network admins. Files stored on another computer/server. Accidentaly hit the DELETE key. Poof! Gone. Files aren't in the local Recycle bin on the local computer. This is especially frustrating for admins who map profile parts back to the server. The users desktop, documents, etc never find their way into the local recycle bin as the users expect.

Solution

Turn on the Recycle Bin.

db accounts setprop ibayname RecycleBin enabled
db accounts setprop ibayname KeepVersions enabled 
signal-event ibay-modify ibayname


Warning.png Warning:
After making changes to the ibay (with the commands shown), you need to logoff your workstation and log back in again so those new access permissions are included in your login session. Recycle Bin will then function as expected.



The Recycle Bin folder will be created automatically the first time a file is deleted, so you will not see the folder until you delete something.

An admin can then go and retrieve the files on the server.

The location of the Recycle Bin is:

/home/e-smith/files/ibays/ibayname/files/Recycle Bin

Changing the recycle bin name

You can change the name of the recycle bin by making a copy of the template fragment into the templates-custom tree and making your modifications there.

  1. Create the proper folder structure: mkdir -p /etc/e-smith/templates-custom/etc/smb.conf/ibays
  2. Copy the template fragment to the template-custom tree cp /etc/e-smith/templates/etc/smb.conf/ibays/10recyclebin /etc/e-smith/templates-custom/etc/smb.conf/ibays
  3. Use any editor to make your changes in the copied file nano /etc/e-smith/templates-custom/etc/smb.conf/ibays/10recyclebin Modifying this line: $vfs->{recycle}->{repository} = "Recycle Bin"; to whatever you like for a name: $vfs->{recycle}->{repository} = "Add your name here";
  4. Now let the server take the necessary actions to have the changes reflected for all ibays (replace <ibayname> with the ibayname): signal-event ibay-modify <ibayname>


Information.png Tip:
You can make the recycle bin hidden by adding a dot as a first character of the recycle bin name