Changes

From SME Server
Jump to navigationJump to search
526 bytes added ,  12:43, 13 January 2019
m
Line 1: Line 1:  +
{{Languages}}
 
===Problem===
 
===Problem===
   Line 51: Line 52:     
Setup the script to run either daily or weekly from cron.
 
Setup the script to run either daily or weekly from cron.
 +
{{Tip box |msg= If after running the script you receive empty notification emails and you've checked the date flags of the files in the recycle bin and know that they should be removed, try changing the '-ctime' parameter to '-mtime'. [[bugzilla:7596]]
 +
You can check the output by running this at the command prompt to see if any files are now being flagged for removal (you can adjust the number of days as you wish):
    +
find /home/e-smith/files/users/*/home/Recycle\ Bin/* -type f -mtime +30 -print }}
 
<pre>
 
<pre>
 
#!/bin/bash
 
#!/bin/bash
Line 143: Line 147:  
Modifying this line:
 
Modifying this line:
   −
  $vfs->{recycle}->{repository} = "Recycle Bin";
+
  $ibay_vfs->{recycle}->{repository} = "Recycle Bin";
    
to whatever you like for a name:
 
to whatever you like for a name:
   −
  $vfs->{recycle}->{repository} = "Add your name here";
+
  $ibay_vfs->{recycle}->{repository} = "Add your name here";
 +
{{Tip box|You can make the recycle bin hidden by adding a dot as a first character of the recycle bin name}}
    
</li><li>Now let the server take the necessary actions to have the changes reflected for all ibays (replace <nowiki><ibayname></nowiki> with the ibayname):
 
</li><li>Now let the server take the necessary actions to have the changes reflected for all ibays (replace <nowiki><ibayname></nowiki> with the ibayname):
Line 154: Line 159:  
</li></ol>
 
</li></ol>
   −
{{Tip box|You can make the recycle bin hidden by adding a dot as a first character of the recycle bin name}}
+
 
 
----
 
----
 
[[Category: Howto]]
 
[[Category: Howto]]
 
[[Category:Administration:File and Directory Access]]
 
[[Category:Administration:File and Directory Access]]
3,054

edits

Navigation menu