Clean-Up Action

(Available in EFT Server Enterprise) When you create your first Site, a Timer Rule is created that runs the Backup Server Configuration Action once each day at midnight, using all defaults for naming and backup location (\backup\Server Configuration Backup [Month] [Day] [Year].bak). The Rule includes a Cleanup Action to delete backup files (*.bak) older than 30 days in that same folder and another Cleanup Action to remove old log files. This Backup and Cleanup Rule is enabled by default, but you can disable it and edit it as necessary.


The Clean up in Folder Action is available only with the On Timer Server Event. At the interval that you specify, EFT Server compares the filter parameters of the Cleanup Action to the files in the designated folder, then determines the creation or modification time of the file and deletes ("cleans up") files that match the cleanup parameters. For example, if you specify to cleanup files that are older than 7 days named dailyreport*.doc in the folder D:\WorkFolder\Sales\Daily Reports, any Microsoft Word files in that folder with dailyreport in the file name are deleted after 7 days. However, if you create a cleanup Action and set a file to be cleaned after 7 days, but then modify the file on the 6th day, the file will not be deleted until 7 days after the modification date.

To set up EFT Server to cleanup files

  1. Follow the procedure in Creating Event Rules to create a Scheduler (Timer) Event. The Event Rule appears in the Rule Builder pane.

  2. In the Actions list, double-click Cleanup in folder. The Action is added to the Rule in the Rule Builder pane.

  3. In the Rule Builder pane, click the '[select]' link. The File Cleanup Action Parameters dialog box appears.

  4. In the Delete file(s) older than <n> box, specify the minimum age of a file to delete from the folder. The default is 7 days.

  5. In the Folder box, click the folder icon icon_open.gif to specify the folder that you want to clean up.

  6. To clean up subfolders in the specified folder, select the Include sub-folders check box.

  7. You can Include or Exclude specific files from the cleanup Action, and/or use wildcards for file types, partial names, and so on.

  8. Click OK to close the dialog box.

  9. Click Apply to save the changes on EFT Server.