Thread: Archiver
View Single Post
Old 09-25-2011, 11:32 AM  
jeza
Senior Member
 
jeza's Avatar
 
Join Date: May 2003
Posts: 530
Default

You can test this script for moving/deleting folders.
Microsoft .net framework 3.5 SP1 must be installed on machine where the script will be executed.

You can setup windows task for it or add a line to ioFTPD scheduler.
Example:
archive = 59 3 * * E:\server\ioFTPD\scripts\jeza.ioFTPD.ArchiveScript \jeza.ioFTPD.Archive.exe

It uses XML file for configuration (check Example.txt).
This script can:
  • move/delete folders older than X days
  • move/delete folders when total count of folders exceeds X
  • move/delete folders when free space on DISK is below X BYTES
  • move/delete folders when total used space on DISK is over X BYTES
  • move/delete folders when specified folder total used space is over X BYTES

I suggest using it on some test folder first
jeza is offline   Reply With Quote