Support

Register your Product

Product Documentation

Knowledge Base

Contact Support

Community

User Group

Resources

Application Library

Flow Library

Script Library

Archive jobs from FTP Server for 2 months

In this flow all jobs are downloaded from the FTP server and stored in the archive folder. They stay in this folder for 60 days and are then deleted by the Recycle Bin script.

This flow is compatible with: PowerSWITCH

Note: starting from update 5 this functionality has been standard included in LightSWITCH, FullSWITCH and PowerSWITCH

Information

The Recycle Bin in this flow is a script element. When creating scripts you can add a custom icon; in this case the custom icon looks like a recycle bin.

The script allows you to delete files in an automated way depending on the following parameters:

  • Maximum disk space (MB): the total disk space of all files present in the preceding folder can not be more than this value.
  • Maximum job size (MB): any single job (file or job folder) bigger than this value is deleted.
  • Maximum number of jobs: if the number of jobs exceeds this value the oldest jobs are deleted.
  • Older than (days): all jobs older than a certain amount of days are deleted.
  • Check age of files every (min): this property determines how long the script should wait before it checks again how old a job is (in minutes)

All properties can be combined; jobs are deleted as soon as one of the properties is satisfied. Use -1 as value if you want a certain property to be ignored.

In this specific example, jobs are downloaded from an FTP server and are stored in the "Archive folder". The Recycle Bin checks this folder every hour and if any jobs are found older than 60 days, they are deleted permanently.

Using this flow

  • Download the flow and save it on your computer: download flow
  • Launch one of the SWITCH products this flow is compatible with
  • Use the “Flow > Import…” menu item
  • In the dialog that is shown, select the flow file

The flow now appears in the flow list. You can now examine it or customize it to your needs.

© Copyright 2007 by Gradual Software.