Sign In with your
Trend Micro Account
Need Help?
Need More Help?

Create a technical support case if you need further support.

Adding a daily job to clean recycle_bin periodically in SafeSync for Enterprise (SSFE)

    • Updated:
    • 25 Oct 2016
    • Product/Version:
    • SafeSync for Enterprise 3.1
    • SafeSync for Enterprise 3.2
    • Platform:
    • iOS 9.2
Summary

This article shows how to automatically clean up the Recycle Bin regularly.

 
Users with "Editor" permission are not allowed to clean all the files of a teamfolder in the recycle-bin folder. Therefore, the steps below are a workaround for cleaning the files that exist longer than a specific time period in the recycle-bin folder.
Details
Public

To initiate a daily cron job:

  1. Create and name a file called "clean_recyclebin" in /etc/cron.d/:

    root@appliance1:~# sudo vim /etc/cron.d/clean_recyclebin

  2. Copy the example codes into the file and save it.
  3. You can modify the "maxdays" parameter to update the maximum days before trimming files. In this example, the parameter has been set to 30 days.

    You can delete all the files in recycle-bin folder immediately by setting maxdays to 0. (i.e. --maxdays 0). You can also re-schedule it to run the job at a specific time you want. In this example, it will run at 16:00 UTC everyday:

    # A daily job to clean recycle_bin periodically.

    SHELL=/bin/sh
    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

    # m h dom mon dow user command
    0 16 * * * root /opt/TrendMicro/OSDP/Bin/cron/trimUserData.pl recyclebin --maxdays 30 --nodup cleanuprecyclebin

Premium
Internal
Rating:
Category:
Configure
Solution Id:
1115622
Feedback
Did this article help you?

Thank you for your feedback!

To help us improve the quality of this article, please leave your email here so we can clarify further your feedback, if neccessary:
We will not send you spam or share your email address.

*This form is automated system. General questions, technical, sales, and product-related issues submitted through this form will not be answered.

If you need additional help, you may try to contact the support team. Contact Support


To help us improve the quality of this article, please leave your email here so we can clarify further your feedback, if neccessary:
We will not send you spam or share your email address.

*This form is automated system. General questions, technical, sales, and product-related issues submitted through this form will not be answered.


Need More Help?

Create a technical support case if you need further support.