Summary
You want to know how to automatically empty the recycle bin in SSFE 2.1.
Details
Important:This procedure requires at least SSFE 2.1 Patch 1 Build 1277 is installed on the server. To download the SSFE 2.1 Patch 1 installer, go to the Download Center.
Some users delete files from their Personal or Team folders but fail to empty the recycle bin. Not clearing the recycle bin of old, deleted, and unnecessary files will result in large disk usage.
To clean-up the SSFE server of old files in the Recycle Bin:
- Log in to the SSFE server command line interface.
- Switch to the root account using the "sudo" command:
safesync@appliance1:~$ sudo –s
- Execute the command:
root@appliance1:~# /opt/TrendMicro/OSDP/Bin/cron/trimUserData.pl recyclebin -maxday XWhere X is any number. The command will delete all files in the Recycle Bin older than X days.
- To automate the process, add the command as a cron job.
- Log in to the SSFE server command line interface.
- Switch to the root account using the "sudo" command:
safesync@appliance1:~$ sudo -sc.
- Edit crontab with the command “crontab –e”.
- Press Insert on keyboard then add the line below at the bottom of the crontab file.
30 1 * * * root (/opt/TrendMicro/OSDP/Bin/cron/trimUserData.pl recyclebin -maxday X)Where 30 is the minute and 1 is the hour. This means the command will run at 1:30AM every day to clean-up the Recycle Bin.
- Save and close the file by pressing Esc on the keyboard.