Changes

From SME Server
Jump to navigationJump to search
479 bytes added ,  17:01, 16 May 2013
m
Line 51: Line 51:     
Setup the script to run either daily or weekly from cron.
 
Setup the script to run either daily or weekly from cron.
 +
{{Tip box | 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'.
 +
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
1

edit

Navigation menu