WatchFTP home page
WatchFTP Startseite (Deutsche Version)
WatchFTP Pßgina Principal (Espa˝ol)
Site WatchFTP (Franšais)
  Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
  News:
WatchFTP v4 released. see http://www.watchftp.com/v4.html
  HomeHelpSearchLoginRegister  
 
Pages: 1
Send Topic Print
WatchFTP Delete By Age (Read 331 times)
ddemoulin
YaBB Newbies
*
Offline


Posts: 2

WatchFTP Delete By Age
Dec 04th, 2017, 7:03pm
 
We use both WatchFTP and WatchDirectory.  Attempting to create a task to cleanup files on our ftp site.  Would like to delete files on the ftp directory by age, much like you can do in WatchDirectory.  Is this possible on an ftp server?  

Ideally would like to keep the files on the ftp server for a month but then delete.  Files are downloaded and renamed to .downloaded, just trying to clean those up after 30 days.

Thank you.   DJD
Back to top
 
 
  IP Logged
Gert
YaBB Administrator
Translator
*****
Offline


Posts: 424
The Netherlands
Re: WatchFTP Delete By Age
Reply #1 - Dec 5th, 2017, 6:20am
 
I think the following should work:

Stop the WF task that downloads/renames files.
Right-click it and select "Copy" to create a new task with the same settings.
On the "Synchronization" window of this new task, set the option "Do not download detected files". On the same window set "Delete detected files" and "hours to delay delete" to 720 (24 hours * 30 days).
On "Filter downloads" set "Only download files that match" to *.downloaded so only the renamed files will be detected.

On "Weekly Schedule" you can set it to run, for example, only on Monday from 06:00 to 07:00.
Note that the task will remove files 30 days after it has DETECTED the files so not really "30 days old".

Gert
Back to top
 
 


Contact me at support -at- gdpsoftware -dot- com
My blog: http://blog-en.gdpsoftware.com/
WWW   IP Logged
ddemoulin
YaBB Newbies
*
Offline


Posts: 2

Re: WatchFTP Delete By Age
Reply #2 - Dec 5th, 2017, 4:17pm
 
Thank you Gert.  Will give that a try.  DJD
Back to top
 
 
  IP Logged
Pages: 1
Send Topic Print