Old 05-28-2003, 07:07 PM   #1
mapis
Senior Member
 
Join Date: May 2003
Posts: 106
Question automaticaly delete old files?

hello, im looking for some script, which will do for me this scenario:

1) find all folders, which have date older 7 (example) days
2) delete this folder + all files in this folders

i need this, because my ftp have limited space on HDD.

thanks all!!
mapis is offline   Reply With Quote
Old 05-28-2003, 07:25 PM   #2
b>d>>s
Senior Member
 
Join Date: Feb 2003
Posts: 488
Default

try WarChive, tho i cant remember url.
maybe http://warc.mine.nu
b>d>>s is offline   Reply With Quote
Old 05-28-2003, 07:32 PM   #3
mapis
Senior Member
 
Join Date: May 2003
Posts: 106
Default

it is good, but only delete files, when i dont have HDD space...

# A device is made by specifying it and then add the rules for it.
# One device can have multiple devicelines if having multiple areas
# on same drive. When moving and such is not used set NULL as parameter.
# Follow examples below
#
#
# newdevice=<index>|<minimum space>|<wanted space>
# device=<index>|<frompath>|<topath>|<frompath VFS>|<topath VFS>
#
# Examples:
# newdevice=0|3000|7000

# Deletes movies in SVCD:
# device=0|d:\ioFTPD\site\SVCD|NULL|/SVCD|NULL


but i need delete only some old files, not all files in SVCD (example)
mapis is offline   Reply With Quote
Old 05-29-2003, 09:08 AM   #4
scull
Senior Member
ioFTPD Scripter
 
Join Date: May 2003
Posts: 159
Default

Hi ..

There is 3 ways to do a script/proggie that controls size.

1.) Date delete, file get deleted when 2 old
2.) Size delete, File get deleted when "svcd,vcd ect" gets full ( you specify how big every folder can get ( svcd=10 Gig aso )
3.) X-Folder Delete, When SVCD gets more than 15 releases delete 5 folders and leave 10.

It wold NOT be hard to make a simple site deleter in VB ...i'm looking in to it right now actually, BUT i'm NOT an ace in programming .

What do you think ? are there more ways to control date,size of releses ?
scull is offline   Reply With Quote
Old 05-29-2003, 05:27 PM   #5
scull
Senior Member
ioFTPD Scripter
 
Join Date: May 2003
Posts: 159
Default ioAutoDel

Now i have made a VB proggie that finds the oldest folder in given section and delete it..

Think i will get a PreAlphaBeta version out soon

I know that there are AutoSiteDelete proggies out there, but often you can't have different delete "rules" for different Sections at your FTP.

soon you will
scull is offline   Reply With Quote
Old 05-29-2003, 05:34 PM   #6
ViNcE
Junior Member
 
Join Date: May 2003
Posts: 25
Default

sounds good, keep your job up
ViNcE is offline   Reply With Quote
Old 05-29-2003, 05:40 PM   #7
scull
Senior Member
ioFTPD Scripter
 
Join Date: May 2003
Posts: 159
Default

Thanx man
scull is offline   Reply With Quote
Old 05-29-2003, 07:56 PM   #8
mapis
Senior Member
 
Join Date: May 2003
Posts: 106
Default

i hope, that it will be soon
thx
mapis is offline   Reply With Quote
Old 05-29-2003, 08:00 PM   #9
Sup3rm4n
Member
 
Join Date: Mar 2003
Posts: 65
Default

how about making a script so it deletes the oldest folder, when the sections runs out of free space...
Sup3rm4n is offline   Reply With Quote
Old 05-30-2003, 05:25 AM   #10
WarC
Senior Member
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 426
Default

Last time I checked WarChive deletes oldest folder in given section when space is low or multiple sections if that is configured
WarC is offline   Reply With Quote
Old 05-30-2003, 07:09 AM   #11
Zer0Racer
Senior Member
ioFTPD Scripter
 
Join Date: Oct 2002
Posts: 703
Default

WarC, yeah that's what I was going to answer, but wasn't 100% sure.
Zer0Racer is offline   Reply With Quote
Old 05-30-2003, 09:19 AM   #12
scull
Senior Member
ioFTPD Scripter
 
Join Date: May 2003
Posts: 159
Default

Okey diden't know that ..

But i made a smal proggie anyway .. maybee someone liks it ( OR hates it ).

I posted it here .. ioByteKiller..

The Virus protection went crazy! But don't worry it's just because i use kode that read and write to you HD.

Be carefully!
scull is offline   Reply With Quote
Old 05-30-2003, 09:24 AM   #13
scull
Senior Member
ioFTPD Scripter
 
Join Date: May 2003
Posts: 159
Default

More options will be added later-on.

m2= delete when 2 many folders ( vcd 10 folders , svcd 100 folders a.s.o. ) not implemented yet.

And more....

if no one use it i don't care ( ok alittle maybe ) because i learned mutch doing this util.
scull is offline   Reply With Quote
Old 05-30-2003, 10:44 AM   #14
scull
Senior Member
ioFTPD Scripter
 
Join Date: May 2003
Posts: 159
Default Bug report.

Bug: ioByteKiller dies when "section" is Empty ( No Releses Present in section ).
scull is offline   Reply With Quote
Old 05-30-2003, 02:52 PM   #15
scull
Senior Member
ioFTPD Scripter
 
Join Date: May 2003
Posts: 159
Default Bug Report.

Opps ...
Bug: ioByteKiller won't leve memory when executed.. Fixed in new version.
scull is offline   Reply With Quote
Reply

Tags
delete, files, folder, folders, ftp

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Send commands to a running FlashFxp. mag123 General Discussion 0 08-01-2004 04:14 AM


All times are GMT -5. The time now is 04:00 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)