PDA

View Full Version : ioByteKiller - automaticaly delete old files


mapis
05-28-2003, 07:07 PM
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!!

b>d>>s
05-28-2003, 07:25 PM
try WarChive, tho i cant remember url.
maybe http://warc.mine.nu

mapis
05-28-2003, 07:32 PM
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)

scull
05-29-2003, 09:08 AM
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
05-29-2003, 05:27 PM
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 :)

ViNcE
05-29-2003, 05:34 PM
sounds good, keep your job up ;)

scull
05-29-2003, 05:40 PM
Thanx man :D

mapis
05-29-2003, 07:56 PM
i hope, that it will be soon :)
thx

Sup3rm4n
05-29-2003, 08:00 PM
how about making a script so it deletes the oldest folder, when the sections runs out of free space...

WarC
05-30-2003, 05:25 AM
Last time I checked WarChive deletes oldest folder in given section when space is low or multiple sections if that is configured

Zer0Racer
05-30-2003, 07:09 AM
WarC, yeah that's what I was going to answer, but wasn't 100% sure.

scull
05-30-2003, 09:19 AM
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
05-30-2003, 09:24 AM
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
05-30-2003, 10:44 AM
Bug: ioByteKiller dies when "section" is Empty ( No Releses Present in section ).

scull
05-30-2003, 02:52 PM
Opps :) ...
Bug: ioByteKiller won't leve memory when executed.. Fixed in new version.

scull
05-30-2003, 03:12 PM
Hi...

Fixed 2 MAJOR bugs in this version :)

Have fun!

scull
05-30-2003, 03:22 PM
Hi!

What do you that downloaded and tried ioByteKiller think... Should i continue the project ? or put it to eternal sleep ?

mapis
05-30-2003, 08:55 PM
thx- super- i will try and test! thanks

Sup3rm4n
05-31-2003, 07:42 AM
great idea, but couldnt you add the options do delete in a sections where there i.e. only 1000 mb free space or something like that....

scull
05-31-2003, 08:09 AM
Sure! .. I will add more options or "methods" lateron when i have more time at my hands.

next version ( v0.04 ) will have "number of folders/releases" controll ... and after that i will implement "size of sections" ( in byte ) controll ..

I just added a Log file to v0.03 .. so you know what was deleted and what day.

I also ReWrote the manual ( readme.txt ) .. Now it makes more sense ( i hope ;) )

hope you like it :).

Here it is ( v0.03 )

mapis
05-31-2003, 08:47 AM
whau - now i must wait for midnight :)

scull
05-31-2003, 08:55 AM
OR change your windows clock! .. i did that when i tested my program ... :). Turn it ONE day ahead .. that should do it .. but you will lose files ONE day to early ;) ..

Godluck :) .. I DO HOPE IT WILL WORK! ;)

mapis
05-31-2003, 09:02 AM
yes - i try it before, like you :) on some tested private folder...
but now - it is running on my public ftp. and now i must wait, what will be do it in real world :)
thank you very much!

scull
06-01-2003, 06:13 AM
Hi ...

Here is the new verion with "Method 2" .. ( m2 ) ..
m2 keep x number of folders as specify and delete the rest.
Read the readme file to find out more about this feature.

have fun :)

scull
06-01-2003, 01:48 PM
Hello!

In ioByteKiller 0.05 i just added a feature that controlls free space on HDD, BUT it's individually for eatch section..

it's deleting folders/releases when section reach it's maximum size. You can set aprox "min" size and aprox "max" size..

Nothing happens UNTIL aprox "Max" size is reached, Then ioByteKiller deletes all old folders UNTIL aprox "Min" size is reached. it's useful if you DON'T want to remove ALL files in
a section.. now you have a "buffert"...

Read the ReadMe file for futher information and examples.

I'm woring on getting ioByteKiller to report to IRC Bots aswell, But i need som input from D1, if it's "legal" for my proggie to APPEND/ADD lines to ioFTPD.log.

Also working on "MOVING" folders / releases to other location when neede ( if specified ).

I hope that MOST of your need are filled with this release.

//Peace

NeoRanga
06-01-2003, 04:17 PM
One section can be controlled by two methods at same time? For example, delete folders older than 5 days and full section?
For next versions would be a great option to combine with actual zipscripts to do not delete incomplete folders.
Thx so much;)

mapis
06-01-2003, 04:55 PM
yes! i have to another idea!

examle:
1) DivX - i set to deleto all filles older 10 days...
2) any of my user wants to download in another time - then, he create TAG - !!Do.not.delete-NAME.RLS (example)

Is it possible to implement something like this? Some exception? Any solutions is good for me!

Thank you very much!
mapis

scull
06-01-2003, 05:15 PM
Hi ! ...

I guess it should't be any problem to add 2 delete methods BUT after another ... the .ini file is read from the top and down .. so the method that meens most first and next row the same path BUT another delete method.

Example:

sections=2
path "d:\FTP\DVD-R" m1 10
path "d:\FTP\DVD-R" m3 200000000 350000000

here IF section get FULL BEFORE 10 days "m3" will "kickin" and do the job and the section will not be "flooded" with warez :)

mapis
06-01-2003, 05:22 PM
hmm, now i have this problem

INI:
sections=1
path "D:\ftp\upload\APPZ" m1 5

but - when i run this - i see this> Run-time error "13" - type mismatch! I dont know why is it!

:((

PS: i have installed vbrun60sp5.exe...

scull
06-01-2003, 05:23 PM
Originally posted by NeoRanga
One section can be controlled by two methods at same time? For example, delete folders older than 5 days and full section?
For next versions would be a great option to combine with actual zipscripts to do not delete incomplete folders.
Thx so much;)

I messed you about this.. but others may want to know :)

I could add this in the .ini ( in future versions ).

delete_incomplete = 1 ( or 0 )
incomplete_tag = "(incomplete)-"

This way BK will look for incomplete tag before deleting any folders.. and if there IS a incomplete release it will not be TERMINATED .. hehe.

This will not be done in a second :) .. i'm new to VB6 programming, so don't expect TOO mutch :).. I'll try my best!

scull
06-01-2003, 05:29 PM
Originally posted by mapis
hmm, now i have this problem

INI:
sections=1
path "D:\ftp\upload\APPZ" m1 5

but - when i run this - i see this> Run-time error "13" - type mismatch! I dont know why is it!

:((

PS: i have installed vbrun60sp5.exe...

I found this:

http://www.greenspun.com/bboard/q-and-a-fetch-msg.tcl?msg_id=009yiK

Read at the bottom on taht page...

"The problem is that the software you are running is designed using a different regional setting than the operating system you are using. This occurs frequently when Spanish or Portuguese Operating Systems are running a program (usually VB created) that has it's time and date settings set for US settings. It can go deeper than that but this is the source of your runtime error 13. Provide specifics such as operating system, Eng, Spanish German, etc etc and what program is causing the runtime error."

mapis
06-01-2003, 05:36 PM
Yes! My Regional Settings is Czech. I try to change to En...

scull
06-01-2003, 05:37 PM
I used "date" command ... i THOUGHT that was ok .. hmm i think i can fix this ..

Where previouse versions the same ?

There is a QUICK solution.. go to the control panel/regions and languades .. and switch to english time/date setting.. And if there is problems just test Swedish time/date settings ...

I will look into the problem and try to find a REAL sulution!

I probobly have to FORCE one date setting .. with
MyDate = Format(Date, "mm-dd-yyyy") or something like it..

Someone with the same VB6 problem ? is this the solution to the problem ?

mapis
06-01-2003, 05:42 PM
hmm, when i change it to English... then:

1)
INI:
sections=6
path "D:\ftp\upload\APPZ" m1 7
path "D:\ftp\upload\DIVX" m1 7
path "D:\ftp\upload\GAMEZ" m1 7
path "D:\ftp\upload\MP3" m1 7
path "D:\ftp\upload\PSX" m1 7
path "D:\ftp\upload\XXX" m1 7

then Runtime.Error and program die :(

2)
INI:
sections=5
path "D:\ftp\upload\DIVX" m1 7
path "D:\ftp\upload\GAMEZ" m1 7
path "D:\ftp\upload\MP3" m1 7
path "D:\ftp\upload\PSX" m1 7
path "D:\ftp\upload\XXX" m1 7

(without APPZ) then OKI!
what may be wrong in APPZ??
when the folder is empty - it is already works fine!

scull
06-01-2003, 06:12 PM
Ok .. as you said .. there seems to be a problem with your APPZ Folder .. Try to run a scandisk .. OR rename your APPZ to "APPZ_old" AND make a completely new folder named APPZ .. maybe somthing wrong with your filesystem...

Good that (expect for APPZ) all seem to be working! :)

I was on my way to the bed to sleep... BUT instead i stayed up and wrote som test programs that i think will solve the DATE issue :D ...

// Goodnight see ya .. new version soon... :cool:

mapis
06-02-2003, 02:04 AM
I dont know, what is wrong... i was delete APPZ and create new folder with same name...

but it is ok, i think, that this is only my problem! thx for support :)

scull
06-05-2003, 04:11 PM
Hi ...

I have added "Don't" delete tag for Date Deleting ..
so if you set
"deny_delete_tag=[save]-" in the .ini file and rename a release folder to "[save]-Lost_Horiz_Beneath-Promo-2003-WLM" It will not be deleted...

And i thing i solved the "Date" bug ...

I have a girlfriend that takes MUTCH time ! :rolleyes:

New verion will be released next week i think...

If you have used ioByteKiller , tell me what you tink about it .. feedback is imortant.. so i can make BK as good as possible. :D

mapis
06-05-2003, 05:44 PM
thanks

for me, it is so nice... but somethimes, on some folder - runtime error. i dont know why... there is no rule for this moment...

but, thanks again!

scull
06-07-2003, 12:10 PM
Ok ... I would like to know what runtime error message you get ? .. If there are any error codes , witch error codes and so on .. It would help me a great deal.

mapis
06-07-2003, 12:44 PM
RunTime Error 13... it is all, and regional setting dont have any influence on this error

scull
06-07-2003, 03:20 PM
Hi ...

I'm working on updating the ReadMe file, and then i will test my new version of ioBK ( v0.07 ). THEN :D I will release it ..

In v0.07 i have fixed the Runtime 13 error I HOPE.. ANd Added "deny delete" funktion that will not delete folders with a serten tag added infront of the folder name ,that you have specified in the .ini file.

If everything runns smooth i will release v0.07 tonight.

// Peace

scull
06-07-2003, 04:16 PM
FINALLY!

Now it's ready for release :)

Here you have ioByteKiller v.0.07

_NOTE_

.ini file changed! .. Read the ReadMe file!

scull
06-07-2003, 04:45 PM
Hi ...

I will soon add the "deny incomplete" feature... I'm working on it.

How about something like this ( in the ini file )

deny_incmp_tag="(incomplete)-" "%RELEASE%" "-(%CD%)"

The possibility to switch palces so it fits your sfv checker...
abow incomplete tag first then "release" name and IF there are more than one "cd" ioBK will know. OR

deny_incmp_tag="--[incomplete]--" "(%CD%)-" "%RELEASE%"

IoBK will search for files OR folders that matches this setting BEFORE deleting anything. So if a relese folder is named "cuebase.vst-crackteam" and it is "incomplete" , ioBK will look for a folder or file named "(incomplete)-cuebase.vst-crackteam" BEFORE deleteing it.

What do you think ?

mapis
06-07-2003, 06:50 PM
Hello, i try it, and for now, it looks very good!
i hope, that now i will be ok, of course i must test it!
but first testing is ok!

thank you for your time!!!

oldhouse80
06-10-2003, 04:27 PM
hey this is a good proggy, but when i launch it a window appears and says:

ioByteKiller0.06 (shouldn't this be 0.07)
Runtime error - '13':
Type mismatch

scull
06-10-2003, 05:10 PM
Is it realy 0.07 ?

What language do you use ?
Have you edited the .ini file as shown in the ReadMe.txt file ?

I fixed ( i tought ) the runtime 13 error :( .. A quick sulution was posted at the rop of this topic page ( page 3 ) But i cut and pated it for you :

************************************************** *
I found this:

http://www.greenspun.com/bboard/q-a...l?msg_id=009yiK

Read at the bottom on taht page...

"The problem is that the software you are running is designed using a different regional setting than the operating system you are using. This occurs frequently when Spanish or Portuguese Operating Systems are running a program (usually VB created) that has it's time and date settings set for US settings. It can go deeper than that but this is the source of your runtime error 13. Provide specifics such as operating system, Eng, Spanish German, etc etc and what program is causing the runtime error."

scull
06-10-2003, 05:13 PM
Mapis had the same problem , But it was solved in 0.07 release of ioByteKiller...

Strange ...

mapis
06-10-2003, 05:57 PM
yes - 0.07 is OKI

Sup3rm4n
06-11-2003, 12:58 AM
Im using warchive, which also gives the options to move things to archive before deleting them!

mapis
06-11-2003, 03:18 AM
yes - it would be nice feature!

like method m4 :) something like - when you set m4, folders are automatically moved to folder specified in INI (ex: trash) ... and then i will set method m1 for it (thash) and another set of days... (like m4 for 10 days and trash m1 20 days)

it is possible to implement this?

oldhouse80
06-11-2003, 06:51 AM
does that solution mean that i need to change my OS language?
I still can't understand why it shows ioByteKiller 0.06 in the popup message :(

ini was edited fine and Os language is set to italian

scull
06-11-2003, 01:43 PM
Hi! ..

There is a bug in VB , If your language in windows ( sometimes ) is not set to english the Runtime 13 error can be shown ..

It's shown because i use a command in VB that collects the date string from the OS ( files and folders dates ) .. and MS likes to think that everyone have english settings.. ( NOT allways the case!!! ). And when VB don't get an English date string as answer it gets confused and creates the runtime 13 error ...

Sorry , it's not my fault :( .. I thougt i fixed the language/date/time bug , but there seems not to be a "work around" solution for this problem :( It's a Visual Basic flaw ..

The only thing that might work is to set your windows language and settings to english ( sorry ... ) ..

Do that and test ... If that do not solve the problem, there is nothing that i can do to help :( ..

If i find a solution i will fix the problem ( if there is a fix ) that very second! i promice! ..

scull
06-11-2003, 01:46 PM
That IoBK shows 0.06 is propobly my fault :rolleyes: , but it's REALY 0.07 ( or what the .exe is named ) ...

No one is perfect ... ( Exempt for my mother .. and .. my girlfriend ... and ... and ... ) :p

scull
06-11-2003, 01:55 PM
Hi ...

Sup3rm4n Is that a feature request or an ioBK dizlike ? :confused: :D

OFCOURCE i will make a "File Move" method .. your wich is my command ;)

BUT not until i have finished the "deny_incomplete" funktion, that i can add is almost ready ... only 100 lines of code left ( just kidding only 10 or 15 lines :rolleyes: )..

After that mapis will get a PreSuperBeta of WHAT will become v1.0 ... And when he says OK , i will release it.

// Peace

mapis
06-11-2003, 05:19 PM
another small problem...

if the program wants to delete folder, which is used, it will generate run-time error 70. and die. is it possible to write something like "Folder XY is used - Skip?" or dont say nothing, but skip this folder :)

scull
06-11-2003, 05:24 PM
Good ! ..

I will dive right into that one :) ..
Maybe i will make BK skip that INTIRE folder ...

thanx!

Bytheway .. I have changes a few things that involves the Runtime 13 problem .. I can't promice anything BUT i hope it will be a better way .. maybe no more runtime 13 errors .. ???

// Scull

scull
06-11-2003, 05:49 PM
Hi ..

What is best : .. to write known errors ( 13 and 70 ) to the .log file ... OR have a .err log file ?

scull
06-13-2003, 10:36 AM
Hi there!

NOW i have played around with this Date/language Error 13 !

I changed my own region settings to italian and tested my erlier versions .. i got the same error .. Then i changed a few things in my new version of IoBK .. and tested again in italian settings .. Vola .. it works fine ( Atleast at my computer at home, in real "life" i don't know yet ).

oldhouse: I hope you can wait for next version! It SHOULD work with italian settings ...

You who got the Runtime 13 error , what languages do you use in windows ?? Please report to me so i can test my new versions with theze languages settings! ..

// peace.

scull
06-13-2003, 03:31 PM
I just mailed ioBK v1.0Beta1 to Mapis ...
Hope that he will say it's ok :) ..

// Scull

mapis
06-14-2003, 06:20 AM
now i will do some test, pls, wait a short time... thx

and! of course - thanks for your new version!

scull
06-14-2003, 06:22 AM
Ok ..

I diden't hear from Mapis, so i will release v.1.0.Beta.1.1....

I have "OldHouse" in mind and all others that recieve the "Error 13" Message ... I have tested it in italian language settings and recieved NO errors .. but who knows .. i hope it is fixed now.

_NOTE_

.ini file shanged AGAIN :) .. so read the manual.. If you don't know HOW to set "deny_incmpl_tag=" and "deny_delete_tag=" leave them as they are ( default ).

Hope you like this little utilitie .. Now i can rest. ( and take my time to add m4 ( move ) method. )

If you like ioBK tell others , If you have ANY problem or dislike ioBK tell me :D

// Peace.

oldhouse80
06-14-2003, 09:58 AM
wohooo good job man. No more Error 13 :D

Now this proggy become really interesting. I'll test for few days... Lovely.

Really THX

phoenixfr
06-19-2003, 03:02 AM
mirroring at http://ioftpd.does.it

mapis
06-19-2003, 05:44 AM
after some day testing, i must say, its ok, and stable... no more bugs

this version can be set as a 1.0 build

feature req: function for moving folders to another folder!!

scull
06-19-2003, 10:11 AM
Hello!

Now i have made a "method" 4 ( m4 ) , that allow folders/releases to be moved ( in combinations of m1-m3 ).

It will look like this in the .ini

****

Example1:
path "d:\FTP\DVD-R" m4 m1 15 dest "e:\FTP\Archive\DVD-R"

Example2:
path "d:\FTP\DVD-R" m4 m2 10 dest "e:\FTP\Archive\DVD-R"

Example3:
path "d:\FTP\DVD-R" m4 m3 400000000 440000000 dest "e:\FTP\Archive\DVD-R"

M4 will move folders/releases with same rules as m1-m3.

****

So first example will move all folders/releases that are 15 days old or older.

Second Example will move folders/releases untill 10 Folders is left.

Third example will move folders/releases if section size is larger than 440 Mb and move folders untill aprox 400 Mb is left.

I just finished m4 and going to test it for a few hours or days, then i will release the new version :D .

// Scull

scull
06-19-2003, 01:56 PM
Hi!!!

Here is ioBK v1.0 Beta 2.0 with move funktion.
Enjoy!

// Scull

*******
This version ( Beta 2.0 ) removed .. Bug .. download Beta2.1 instead!
*******

scull
06-19-2003, 03:10 PM
Woops :) ..

Compile f**k up .. my fault .. Here is the WORKING version! Changed to beta2.1 , It's just thiz fix :/ ...

// Scull

mapis
06-19-2003, 05:28 PM
WOW - super! Thanks!

mapis
06-24-2003, 06:02 AM
hello all!

this version is absolutelly ok, so i think, that it can be FINAL v.1.0!

does anybody have different opinion?

iXi
06-26-2003, 09:51 PM
moin

i get runetime error 56
file not found

did i need vbs files or so to run it?..

cya

scull
06-28-2003, 09:26 AM
File not found.. It sounds like you have edited your ioBK ini file wrong .. wrong path maybe ?

Yes you need "Visual Basic Runtime Libraries 6" to run ioBK...

No other "file not found" reports have been made...

// Scull

mapis
07-23-2003, 05:44 AM
hello Scull!

what about you? i hope, that you will create FINAL version...

and i have some last request - MOVE method is not MOVE, bud COPY&DELETE. its not so good, if you have DELETE folder on the same disk. CPU, HDD activity :( and!! most importantly!!, i dont have space on the disk :( Can you create method m5? For Copy&ChangeDate?

thanx

alturismo
07-23-2003, 02:25 PM
i get also an error here

checked teh pathes now couple times and cant find it

---------------------------
ioByteKiller1.00
---------------------------
Run-time error '53':

File not found
---------------------------
OK
---------------------------

"53" may some have a clue what that mean

cheers ahead

DCLXVI
08-01-2003, 10:58 PM
Great script... nearly perfect, only improvement i can think of is extending the logging function (how big the dir was, that got deleted, how many files, and additional statistics, so that one can use that logfile to let cleanups be announced with sitebot) if you could manage that, your script would really be KICK ASS! :)

scull
08-09-2003, 10:08 AM
Hi! ...

Sorry , i haven't been "around" for a while.

I'm working on a complete rewrite of ioBK ..

m1-m3 Is now totally rewritten and seems to work :) .. I must test it futher.

Next thing to rewrite is m4 ...

I will change the Move funktion , so it will MOVE files if on same Drive.

Ok.. Size and Number of files deleted/moved would be a nice and not that hard feature to add.

// Scull

scull
08-10-2003, 09:21 AM
Hi ...

I Changed the log output for DELETED files to this:

2003-08-08 15:55:01 [ DELETE ] - [ 18 Files, 107373066 Bytes ] - [ C:\test\FTP\MP3 ] - [ Type_O_Negative-Life_is_Killing_Me-Retail-2003-PMS ]

And changed log output for MOVED files to this:

2003-08-10 15:41:08 [ MOVED ] - [ 18 Files, 107373066 Bytes ] - [ FROM ] - [ C:\test\FTP\MP3\Type_O_Negative-Life_is_Killing_Me-Retail-2003-PMS ] - [ TO ] - [ C:\test\FTP\archive\MP3 ]

What do you think of that ? Is it a good Output ?

// Scull

DCLXVI
08-10-2003, 09:30 AM
Thats good, i can parse out the info and then announce it in the style of my other announces... good work! Keep it up!

scull
08-10-2003, 09:31 AM
hi...

There was a request , use MOVE instead of COPY/DELETE.

I Used COPY/DELETE because VB would NOT let me MOVE Files from one HDD Partition to another HDD patition! .. SO i got around the problem by first Copy the files to it's dest , and then Delete the original after Copy. That works fine IF you have extra storage space on your HDD ...

NOW i have changed my program to Move files/folders if ON the SAME HDD Partition , AND use Copy/Delete IF not the same Partition. It works fine now. ( i Hope :) ) ..

I'm almost ready to relase the new REWRITTEN version of ioBK ( it will be version 1.0.1 ... )

// Scull

DCLXVI
08-10-2003, 10:50 AM
Sounds great... i can right now think of only one possible improvement... and that would be to make it possible to delelte certain dir's with higher priority, i think of [NUKED] dirs, because i don't want to keep them until they reached the age to be deleted in the ordinary way, but only until the next Cleanup run, so that would be a nifty feature... hope it is possible to build that in, since i don't know how your algorithm to sort out the dirs to be deleted works :)

scull
08-10-2003, 12:40 PM
Originally posted by DCLXVI
Sounds great... i can right now think of only one possible improvement... and that would be to make it possible to delelte certain dir's with higher priority, i think of [NUKED] dirs, because i don't want to keep them until they reached the age to be deleted in the ordinary way, but only until the next Cleanup run, so that would be a nifty feature... hope it is possible to build that in, since i don't know how your algorithm to sort out the dirs to be deleted works :)

Nothing is impossible ( almost nothing ) :)

I'll look in to it ...

// Scull

scull
08-10-2003, 05:19 PM
Hi !

I have just tested this vesion , and I can't find any errors. ( Does NOT meen that there is non ).

Be Carefull ! ;)

Enjoy!

mapis
08-11-2003, 06:37 AM
hmm, im NOT change INI file, but now i have this error:

RunTime Error "9"
Subscript out of range

I have idea. By me, it will be happen, when folder is EMPTY!

scull
08-11-2003, 07:17 AM
Thanx Mapis!

The error was shown when using Metod 1 or Method 4 & 1 togeter, AND with an empty section ( no subfolders/releases ).

Here is the fixed version ! ...

mapis
08-11-2003, 07:44 AM
thx a lot, i will test it!

scull
08-11-2003, 10:02 AM
Hi ..

This last hour i spent improving my ioBK and i added delete NUKE option aswell.

!_CHANGED_.INI_FILE_!

I added one line in the .ini file , right under the deny tag.

nuke_folder_tag="[NUKE]-"
OR
nuke_folder_tag=""

If set to "" NO NUKED files will be PRE deleted ( not forced to be deleted ). Option disabled.

If set to "What_ever" ALL NUKED Releases with that tag infront of it will be DELETED by FORCE.

Enjoy! :)

// Scull

scull
08-12-2003, 02:49 PM
Manual ...

( manual file delated and moved togheter with ioByteKiller to "www.ioftpd.scripts/"

// scull

mapis
08-16-2003, 06:13 AM
now i look for some new problem.

when i move folder - date and time of folder is not change and iobk delete this folder when next time is running.

scull
08-16-2003, 11:01 AM
This happens when you move within the same HDD ? right ?

So i will fix this little problem for you :) ..

//Scull

ioByteKiller Latest Version Can Be Found Here >>>> <<<< (http://www.ioftpd.com/scripts/script.php?id=7)

mapis
08-18-2003, 05:42 PM
thx :) tonight ill try it

alturismo
08-19-2003, 02:22 AM
hi, gave bytekiller another try and got a new error now ;)

---------------------------
ByteKiller
---------------------------
Run-time error '6':

Overflow
---------------------------
OK
---------------------------

may an idea how to solve this

my ini looks like this

deny_incmpl_tag=""
deny_delete_tag="(deny)-"
nuke_folder_tag="[Nuked]-"
sections=5
path "E:\REQUEST" m3 54000000000 58000000000
path "F:\XBOX" m3 75000000000 79000000000
path "G:\DVDR" m3 175000000000 178000000000
path "H:\DVDR-SERIES" m3 175000000000 178000000000
path "H:\DVDR-MUSIC" m3 175000000000 178000000000


thx ahead

scull
08-20-2003, 02:33 PM
Hi alturismo!

Yes i know what the problem is ...
You CAN'T have a EMPTY deny_incmpl_tag="" line ... :)
If you try the default line ( for deny_incmpl_tag ) it will work ( i hope )...

Use this:

deny_incmpl_tag="(incomplete)-" "(%CD%)-" "%RELEASE%"

And if you STILL MUST disable deny_incmpl_tag just make one that in a NO match to your SFV checker output. Like :

deny_incmpl_tag="_(incomplete)_-" "(%CD%)-" "%RELEASE%"

( i don't know ANY sfv checker that generates this sort of line, and then this option is kinda solved ).

Hope this is solving your problem.

Thanx for using ioBK.

//Scull

alturismo
08-21-2003, 02:53 AM
cheers, got that solved ;)

now i have another tiny thing

when i have an HD where are folders like

/DVDR
/GROUPS/DVD1
/GROUPS/DVD2

the HD has a size like 200000000000

i set in .ini like this

path "h:\DVDR" m3 190000000000 195000000000

would mean as soon dvdr-space goes under ~5gig it should
delte till there are more then ~10gigs

but

when there are some releases in /GROUPS like say ~20gigs,
it will never reach ~195gigs in /DVDR, so it will never delete
like this, as it doesnt check the HD space itself, just the folder /DVDR

do i see that right or did i setup something wrong ?

i could "quota" the /GROUPS section too, but when i want to
use as max as possible its hard to setup with an conf like this, right ?

cheers ahead

scull
08-25-2003, 01:53 PM
hi alturismo !

You could devide the HDD and decide how many bytes/meg/gigs eatch section on that HDD can be...

For every "method" you must make a new line in the ini with method.

DVDR section maybe only gets 120000000000 and GROUP's get 80000000000 ...

Example:

deny_incmpl_tag="(incomplete)-" "(%CD%)-" "%RELEASE%"
deny_delete_tag="(deny)-"
nuke_folder_tag="[NUKE]-"
sections=2
path "h:\dvdr" m3 100000000000 120000000000
path "h:\group\dvdr" m3 60000000000 80000000000

this way there will always be space in both sections ...
total size for H: drive is 200000000000 , Max 120 Gig for DVDR and Max 80 Gig for groups ...

When dvdr section exceeding 120 Gig it will be deleted down to 100 Gig ..
When Group section exceedind 80 Gig it will be deleted down to 60 Gig ..

Or

deny_incmpl_tag="(incomplete)-" "(%CD%)-" "%RELEASE%"
deny_delete_tag="(deny)-"
nuke_folder_tag="[NUKE]-"
sections=3
path "h:\DVDR" m3 100000000000 120000000000
path "h:\GROUPS\DVD1" m3 20000000000 40000000000
path "h:\GROUPS\DVD2" m3 20000000000 40000000000

this way DVDR gets 120 Gig , Group\DVD1 gets 40 Gigs and Groups\DVD2 gets 40 Gig ... tot = 200 Gig

// scull

alturismo
08-26-2003, 12:45 AM
yep, got that working like that, may an consider for an future
version

instead of working with total sizes may just turn around

like working with rest free space

example:

path "h:\DVDR" mX 10000000000 5000000000

means, rest space is < 5gigs it frees up to > 10gigs

that way u wouldnt have to "quota" HD´s

cheers for helping and nice script u made ;)

scull
08-26-2003, 12:48 PM
Thanx :) ..

You meen that you want a funktion that FORCE delete "some" files in ALL sections ( OR as many as you want ) if a serten HDD gets full ... ?

//scull

alturismo
08-26-2003, 02:30 PM
didnt thought of that, but that also would be a nice feature when
using multiple sections on 1 partition/HD, hehe

what i thought was like, when u have /pre or /private and
another section like /DVDR on 1 partition/HD

where in /pre or /private u definately dont want to del, but where
its hard to quote the sizes, it would be easier not to work with total spaces,

may would be easier using left space like freespace in /DVDR
when theres <5 gigs up to >10gigs, so it wouldnt matter how
much is used in other parts on an HD/partition, and u wouldnt
"waste" space for "quoting" other parts wich arent used always.

just an thought ;)

scull
08-27-2003, 03:54 PM
Hi ..

Hmm .. you men i SHOULD check total HDD Partition size .. and if less than xxx bytes is left TOTALY on the partition THEN delete in given section ... like :

path "d:\DVDr" m5 FREE_HDD_SPACE BYTES_TO_DELETE_IN_SECTION

If this is what you meen .. i do not think i would work .. because .. if you have more than 1 section on the same partiotion with this "method 5" ONLY ONE section will be adjusted..

Lests say i have a HDD of 120 Gb .. and i have 3 sections at it ...
SVCD, VCD and XXX ...

path "d:\SVCD" m5 10Gb 5Gb ; if less than 10Gb left of HDD space delete 5Gb of oldest stuff in SVCD.
path "d:\VCD" m5 15Gb 20Gb ; if less than 15Gb left of HDD space delete 20Gb of oldest stuff.
path "d:\XXX" m5 5Gb 10Gb ; if less than 5Gb left of free space then delete 10Gb of XXX.

This would meen that ONLY VCD would be deleted because it has the higest "demand" of free space ..

I don't se another way to do this, tah to use quota ,sorry .. OR maybe i don't understand your line of thinking ... if that's the case i'm truly sorry :( ...

// scull

alturismo
08-28-2003, 02:18 AM
lo scull,

no, in this case u prolly right, i dont see a good way therefore
either, hehe

multi sections there either quote or max releases, wich already
is implented in bytekiller ;)

but the other thing when u have /pre and /section on 1 HD,
i would doubt counting in "left space" is more efficent
then "total space"

this way u could leave the /pre untouched with quoting etc, and
always use the max rest space for /section

but, its not really "needed", cause you always can quote and all
is fine ;)

scull
08-30-2003, 03:05 AM
:) ...

If i have any spare time i will look in to it :) ..

For the moment i'm working on a "site new" script ... I know there is a few already .. but i like to make a own :)

dEf
09-03-2003, 05:58 PM
thx for this script Skull, detailed configuration is nice :)

i think alturismo free space idea is nice

lets take this example:
sections=2
path "c:\ftproot\games" m4 m1 50 dest "c:\ftproot\games-old"
path "c:\ftproot\games-old" m5 80000000000 100000000000

move dirs from games by method m4 m1 to games-old
then free space using m5 by deleting from games-old (if less than 80G until 100G) - because both sections are on same hdd

this would be special method u use just once on one partition. if you had a bit of time and wanted to do this, please try to find the free space in dir, not on drive/partition. some ppl use win2000 mounted volumes (into dirs)

scull
09-06-2003, 11:02 AM
Hi ..

The idea of ioBK is to Quota sections/folders .. It's built up around that idea ... so it's quite complicated to implement methods that works the way you want ...

I don't thing i will add more methods to ioBk , But i may add features as irc anounce ...

But ideas are always welcome ... :)

dEf
09-07-2003, 03:10 AM
ok, thank you anyway :)

mapis
09-07-2003, 06:29 AM
irc anounce will be fine...

scull
10-26-2003, 05:19 AM
Hi ...

Latest Version Found Here (http://www.ioftpd.com/board/showthread.php?s=&threadid=853&perpage=1&pagenumber=88)

//scull

Legion
11-03-2003, 04:41 PM
Is there any way of getting Iobytekiller to ignore empty dirs?
I use the option where each section has a set number of allowed folders.. like one folder has a 20 dir limit and if it goes beyond that iobytekiller deletes the oldest.
Although i also use an incomplete script that makes empty folders in the main section dir to announce wich releases are incomplete. Iobytekiller counts these folders as part of the section folders so in other words, it's common that i have 15 releases and 5 empty "announce" folders.
Hopefully you'll get the idea what i mean, if not leave me an msg and i'll try to explain better.
Great prog btw, nicely done

scull
11-04-2003, 03:23 PM
Hi !..

Thanx :)

To prevent "empty" or lets say "incomplete" folders from getting deleted, you must edit the iobytekiller.ini ..

deny_incmpl_tag="(incomplete)-" "(%CD%)-" "%RELEASE%"

This ( default setting ) will spare every release that have a tag och folder with (incomplete)- infront of it ..

Lets say that "Anything.Else.SCREENER-OBUS" in not complete , then your .SFV checker vill make a tag folder OR tag file named "(incomplete)-Anything.Else.SCREENER-OBUS" ..

ioBK will NOT delete "Anything.Else.SCREENER-OBUS" OR any File och Folder maned "(incomplete)-Anything.Else.SCREENER-OBUS".

If your .SFV checker maked an incomplete tag that looks differet you have to change ioBK ini file.

If an Incomplete tag that looks like this "--[INCOMPLETE]--Anything.Else.SCREENER-OBUS" you must change ioBk ini to :

deny_incmpl_tag="--[INCOMPLETE]--" "(%CD%)-" "%RELEASE%"

Did i answer your question or didn't i get it right ? :) ..

// Scull

Legion
11-05-2003, 08:54 AM
That part i know ;)
The thing i mean is (and i'm going to do an example here)
Say i allow there to be 5 releases in one section, if more than 5 then delete the oldest.
My incomplete scripts makes incomplete folders in the main dir during uploads.

release1-somegroup
[--INCOMPLETE--].[25 of 36].[69%].[release1-somegroup]
release2-somegroup
release3-somegroup
release4-somegroup
"release5-somegroup"
"release6-somegroup"

You'r deleteprog has deleted "release5-somegroup" and "release6-somegroup" since it only allows 5 folders in that section, even though the incomplete folder isn't really a release. So the question really is if it's possible to make the program ignore those empty folders, by that meaning not counting them as one of those 5 allowed folders. Making it possible to look like this when allowing only 5 folders:

release1-somegroup
[--INCOMPLETE--].[25 of 36].[69%].[release1-somegroup]
release2-somegroup
release3-somegroup
release4-somegroup
release5-somegroup

Hope that made better sense ;)

scull
11-05-2003, 05:40 PM
Hello ..

Hmm .. i see what you meen. I think i missed that in my program :) .. thanx for bringing it to my attention!

Ofcource the "Empty" incomplete folder/dir should NOT be counted as an actual release! ..

I have little time to correct it for the moment, BUT i will look into it when i get som spare time :)

Thanx for using ioBK, i'm very pleased that someone finds it useful!

// Scull

Latest Version Found Here (v1.1.1) (http://www.ioftpd.com/board/showthread.php?s=&threadid=853&perpage=1&pagenumber=88)

scull
11-06-2003, 01:00 PM
Hi ...

I found out that your .sfv checker is not working with ioBK at the moment.. The SFV checker gives out a tag dir that ioBK don't understand ( the first part it does understand ' [--INCOMPLETE--] and therefore that tag dir is saved BUT the real release is not recogniced as an incomplete folder and deleted ).

And thanx to you i found another thing, IoBK v1.1.1 counted (incomplete) and it's Release dir as a WHOLE release .. So if you have 5 releases and one is incomplete and you set the ini to save 3 folder , it saved 2 releases AND the incomplete... NOW it saves 3 WHOLE releases AND the incomplete. ( under m2 anyway ).

I will see what i can do to inprove ioBK to recognize more versions of SFV outputs. All sfv checkers that output

<incomplete tag> <release name>
Or
<incomplete tag> <disk> <release name>
Or
<incomplete tag> <release name> <disk>

is compatible with ioBK v1.1.1. Your checker gives out:

<incomplete tag> <files done> <procent done> <release name>

//Scull

kebabber
11-11-2003, 11:44 AM
OS windows 2003 std server:

Config file:
deny_incmpl_tag="[Incomplete]-" "(%CD%)-" "%RELEASE%"
deny_delete_tag="[deny]-"
nuke_folder_tag="[Nuked]-"
sections=11

path "\CONSOLE\PS2" m3 7000000000 8000000000
path "\MOVIES\DIVX" m3 4500000000 5000000000
path "\MOVIES\SVCD" m3 18700000000 20000000000
path "\MOVIES\TV" m3 6000000000 7000000000
path "\MOVIES\VCD" m3 13700000000 15000000000
path "\MP3" m3 9700000000 10000000000
path "\APPS" m3 11000000000 12000000000
path "\GAMES\ISO" m3 23300000000 25000000000
path "\GAMES\RIP" m3 4200000000 5000000000
path "\GAMES\DOX" m3 2800000000 3000000000
path "\0DAY" m1 14

When i run ByteKiller.exe it uses 100% of my cpu and 3 -4 megs of ram, But nothing gets killed :)

Not a byte has been touched... looks like the program just hangs?

nothing happends.. nothing in the log or no error message.

regards kebab

scull
11-11-2003, 12:44 PM
Hi! ..

First ..No empty rows in the .ini please ! :)

Second .. You MUST have the exact location WITH drive letters and all ..

Example:

path "C:\test\FTP\SVCD" m1 1

Check the log , there should be som sort of error report there ...

// SCull

kebabber
11-11-2003, 01:42 PM
I removed F:\blah blah for security reasons... the error was due to the line break between sections and path... hehe... god damn... :-)

scull
11-14-2003, 08:10 PM
hehe ok.

I guess that my .ini file parser routine isn't the greatest ever made ( not dealing with empty rows and not recogniced chars ). :)

// scull

Latest Version Found Here (http://www.ioftpd.com/board/showthread.php?s=&threadid=853&perpage=1&pagenumber=88)

sCry
11-21-2003, 05:40 AM
runtime error 5,

my conf.

deny_incmpl_tag="(incomplete)-" "(%CD%)-" "%RELEASE%"
deny_delete_tag="(deny)-"
nuke_folder_tag="[!Nuked]-"

sections=0

path "E:\Ftp\Movies" m3 40000000000 60000000000
path "E:\Ftp\Movies" m2 40

scull can give me suggestions? thx

scull
11-21-2003, 01:47 PM
Hi ..

It's because you have empty rows in your ioByteKiller.ini file .. NO empty rows allowed ( It has been written in this forum before ).

AND because you must set number of "sections" right. In your case set sections=2 to get it right ... Every "section" you want to let ioByteKille size control you must count ..

Like this:

deny_incmpl_tag="(incomplete)-" "(%CD%)-" "%RELEASE%"
deny_delete_tag="(deny)-"
nuke_folder_tag="[!Nuked]-"
sections=2
path "E:\Ftp\Movies" m3 40000000000 60000000000
path "E:\Ftp\Movies" m2 40

... And thanx for using my util :)

//Scull

>>>Latest Version Found Here ( v1.1.1 ) <<< (http://www.ioftpd.com/board/showthread.php?s=&threadid=853&perpage=1&pagenumber=88)

sCry
11-21-2003, 09:27 PM
thanks scull and your excellent script, I got it.

Pharaoh
12-20-2003, 11:15 AM
Originally posted by Scull
Hello ..

Hmm .. i see what you meen. I think i missed that in my program :) .. thanx for bringing it to my attention!

Ofcource the "Empty" incomplete folder/dir should NOT be counted as an actual release! ..

I have little time to correct it for the moment, BUT i will look into it when i get som spare time :)

Thanx for using ioBK, i'm very pleased that someone finds it useful!

// Scull

Latest Version Found Here (v1.1.1) (http://www.ioftpd.com/board/showthread.php?s=&threadid=853&perpage=1&pagenumber=88)

Thanks for your excellent script mate!
I installed your script and so far it is working perfectly, except for the incomplete tags which are being counted as folders, instead of being ignored...any fix for that yet?

scull
12-21-2003, 01:26 PM
Hi! ...

Thanx M8 ! .. :)

That problem is because ioBK v1.1.1 does ONLY suport SFV tags that looks like:

<incomplete tag> <release name>
Or
<incomplete tag> <disk> <release name>
Or
<incomplete tag> <release name> <disk>

Tags like:

<incomplete tag> <files done> <procent done> <release name>

Is not supported ..

I tried to make it take ANY tag combination , but it's a ***** .. :/

So i guess no fix yet :( ...

// Scull

>>>Latest Version Found Here ( v1.1.1 ) <<< (http://www.ioftpd.com/board/showthread.php?s=&threadid=853&perpage=1&pagenumber=88)

Pharaoh
12-21-2003, 01:35 PM
Originally posted by Scull
Hi! ...

Thanx M8 ! .. :)

That problem is because ioBK v1.1.1 does ONLY suport SFV tags that looks like:

<incomplete tag> <release name>
Or
<incomplete tag> <disk> <release name>
Or
<incomplete tag> <release name> <disk>

Tags like:

<incomplete tag> <files done> <procent done> <release name>

Is not supported ..

I tried to make it take ANY tag combination , but it's a ***** .. :/

So i guess no fix yet :( ...

// Scull

>>>Latest Version Found Here ( v1.1.1 ) <<< (http://www.ioftpd.com/board/showthread.php?s=&threadid=853&perpage=1&pagenumber=88)

Yes, skull, I know about that as you posted before.
I didn't mean the recognition of any tag, I mean that it count it as a folder (I am using ioBanana SFV checking here) and therefore counting the incomplete dirs as folder when using the m2 method...

Is it possible to use some programming technique to make the m2 method ignore certain fomrat or directory containing a specific name/s (like *incomplete*) when counting the number of dirs, and then ignoring those dirs again when deleting?

scull
12-26-2003, 09:20 AM
Originally posted by Pharaoh
Yes, skull, I know about that as you posted before.
I didn't mean the recognition of any tag, I mean that it count it as a folder (I am using ioBanana SFV checking here) and therefore counting the incomplete dirs as folder when using the m2 method...

Is it possible to use some programming technique to make the m2 method ignore certain fomrat or directory containing a specific name/s (like *incomplete*) when counting the number of dirs, and then ignoring those dirs again when deleting?

Sorry my misstake :) ..

I was playing around alittle with this problem , but dide'n have any time to finish it.

So ... sometime maybe :)

//Scull

MIC_vBa
01-15-2004, 12:30 AM
it would be VERY nice if ioByteKiller would ANNOUNCE in channel when moving or deleting files ...

do u think its possible ?

scull
01-15-2004, 10:48 AM
Hi.

As soon as i find insperation i will add that feature, it's the first thing on the to-do list :).

I don't use any egg/windrop or sitebots , so i will have some one to test it .. I will simpley add a line to ioftpd.log file. And then the bot must be trigged to act on that "line" ..

// Scull

MIC_vBa
01-15-2004, 11:37 AM
great feature would be if the output line would be CONFIGURABLE ... i want it in a speacial look ;)

scull
01-15-2004, 02:51 PM
hehe .. ok ..

One thing at the time .. OK ? ;) ..

Let's get it to announce SOMETHING at all first :)

I have actually started to screew around with the source now :)

//Scull

scull
01-15-2004, 02:56 PM
Ok ..

Where do i find all the "codes" for different colors and stuff , ioZs putts "\002" and stuff in the ioftpd.log file that get passed on to the bot .. ? How does the "formating" work ?

//Scull

MIC_vBa
01-15-2004, 08:01 PM
itcl :

##color, underline, bold, reverse.
proc u {} {return \037}; #underline
proc r {} {return \026}; #reverse
proc c {} {return \003}; #color
proc b {} {return \002}; #bold

i hope this will help

scull
01-16-2004, 09:52 AM
Hi!

Thanx MIC_vBa! .. Now i know how to do.

//Scull

scull
01-16-2004, 10:49 AM
Hi there! ..

I need someone to test this new version Plz :).

It's ONLY a TEST version and only output to the bot ( actually only to ioftpd.log ) in DELETE operations NOT on MOVE, a customizable Bot-Text-Output version is under develop ( With cookies and output to bot in all operations ) ..

The iobytekiller.ini is CHANGED! ..
Added the "ioftpd_log_path=" line at the top.

Example:

ioftpd_log_path="C:\ioFTPD\logs"
deny_incmpl_tag="[--INCOMPLETE--]." "(%CD%)-" "%RELEASE%"
deny_delete_tag="(deny)-"
nuke_folder_tag="[NUKE]-"
sections=1
path "D:\test" m2 3

Keep your old iobytekille.log and change your iobytekiller.ini. And run the new iobytekillerv1.2.0 exe And you are ready to test it.

When deleting a folder (in this case the folder ddddddd in XXX section ), iobk adds a line in the ioftpd.log file.
The line looks like this:

01-16-2004 16:03:17 IOBKDEL: "/xxx/ddddddd" "[xxx] IOBK AUTO DELETED: ddddddd"

I guess that a line or two must be added to dZSbot for it to announce at IRC channel. I'm not good at theze things but i believe that by adding "IOBKDEL" to the line "set msgtypes(DEFAULT)" in the dzSbot.tcl AND by adding this line "set disable(IOBKDEL) 0" UNDER "# MSGTYPES: ENABLE=0/DISABLE=1 ANNOUNCES" It will annound a auto delete.

I need help with this bot thing .. If you get it to work with IRC output PLEASE tell me so i can write a manual for ioBK how to alter the bot script.

( I'm not running any bot och channel myselfe ,so i need help from others that are )

//Scull

MIC_vBa
01-16-2004, 12:06 PM
i can test it on monday evening ...

ill pm you on monday evening :)

ill make a snapshot of my actual bot output !

scull
01-16-2004, 03:17 PM
Would be great , but it would be greater if i could find out this weekend ... so i can work my magic ;)

By the way ...

Cookies to come:

%dirsize = The Deleted or Moved Folder Size in Bytes
%nbrfile = Number of deleted files
%section = Section the deleted/moved folder was in.
%delname = Deleted folder name

//Scull

MIC_vBa
01-19-2004, 07:06 AM
good to know about the cookies ...

very useful for dated dirs

MIC_vBa
01-19-2004, 02:59 PM
nice thing about the IOBKDEL function ... but what about the MOVE function ?

IOBKMOVE instead of IOBKDEL ???

;)

scull
01-19-2004, 03:42 PM
Hi ..

In the TEST version 1.2.0 there is no logging for move ... Butt in next version 1.3.0 there is ..

I'm waiting for your word on IF it works , IF it announces att irc with those settings i gave ? .. When i do know it works i will release v1.3.0 ( With IOBKDEL & IOBKMOV , And Cookies ).

And yes .. It's the same settings for IOBKMOV as with IOBKDEL in the bot settings. :)

//Scull

MIC_vBa
01-19-2004, 04:01 PM
hm... thing is that i only MOVE dirs and not delete them.

:(

scull
01-19-2004, 04:10 PM
Okey ...

Here is the 1.3.0 Version. :)

ioByteKiller.ini CHANGED AGAIN...

Added 2 new lines :

cstm_del_botout="Message and cookies"
cstm_mov_botout="Messages and cookies"

//Scull

MIC_vBa
01-19-2004, 04:27 PM
01-19-2004 22:27:13 IOBKMOV: "//" " (00 Files) was auto Moved From [] section, Saved 0 Bytes."


thats all what it logs to ioFTPD.log

no bot announcement

addition :

made an error in dzsbot.tcl

bot output looks like this :

15::. 07DEFAULT .:: (00 Files) was auto Moved From [] section, Saved 0 Bytes.

folder was EMPTY (trying filled folder now)

MIC_vBa
01-19-2004, 04:35 PM
15::. 07DEFAULT .:: (00 Files) was auto Moved From [] section, Saved 21808074 Bytes.

size is correct ... but this 0DAY folder has NOT 0 files ;)

section is also NOT shown

must be 0day and dated dir ... e.g. 0day/1114

MIC_vBa
01-19-2004, 04:40 PM
is it possible that its NOT a DEFAULT msg in dzsbot ?

like this :

set announce(IOBKDEL) "::. %bold%color07AUTO DELETE%color%bold .:: %msg"
set announce(IOBKMOV) "::. %bold%color07AUTO MOVE%color%bold .:: %msg"

;)

addition :

ive tested some things in dzsbot.tcl and now it looks like this :

15::. 07AUTO MOVE .:: 01 files 7AUTO MOVED from section : saved 32030929 bytes ::.

%section cookies are not working ...

and B0unty told me that "//" in the logged output in ioFTPD.log
is bad :

01-20-2004 02:20:34 IOBKMOV: "//" "\00201\002 files \002\0037AUTO MOVED\002\003 from section : saved \00232030929\002 bytes ::."

scull
01-20-2004, 12:10 PM
Hi ..

I will speak with him.

//Scull

scull
01-20-2004, 04:57 PM
Hello! ...

I spoke to Bounty and he was very helpful, and showed me how to get ioBK to work with his dZSBot!

I changed a few things to get ioBK to fit.

How to get it to announs ? Do like this ( in dZSBot.tcl ) :

## add at end of msgtypes(DEFAULT) line
set msgtypes(DEFAULT) ".... IOBKDEL IOBKMOV"
...

set disable(IOBKDEL) 0
set disable(IOBKMOV) 0
...

set variables(IOBKDEL) "%msg"
set variables(IOBKMOV) "%msg"
...

## NO RANDOMIZING OUTPUT
set announce(IOBKDEL) "-%sitename- \[IOBKILLER\] + %msg"
set announce(IOBKMOV) "-%sitename- \[IOBKILLER\] + %msg"

Then it WILL announce any DELETE or MOVE operation to the ICR channel! ...

//Scull


ioByteKiller Movedhere ( script section ) (http://www.ioftpd.com/scripts/script.php?id=7)

mapis
01-20-2004, 07:26 PM
cool, nice! working! thanx!!!
one request pls! output is ib bytes - is it possible to have output in MB?

not:
[01:19] BOT: [IOBKILLER] + Pratele.9x18.Loterie.2003.XviD-BB (18 Files) was auto Moved From [DIVX] section, Saved 188933830 Bytes .
request:
[01:19] BOT: [IOBKILLER] + Pratele.9x18.Loterie.2003.XviD-BB (18 Files) was auto Moved From [DIVX] section, Saved 189 MBytes

wooolF[RM]
01-20-2004, 09:18 PM
script called ioBYTEkiller, so there u have your BYTES :p :D

MIC_vBa
01-20-2004, 10:27 PM
15::. 07AUTO MOVE .:: 1223 7AUTO MOVED from 0day section : saved 260864564 bytes ::.

nice :)))

scull
01-21-2004, 12:51 AM
Hi! ...

wooolF[RM] is right ;) ..

Well ..i guess i could always add a Mb & Gb size cookie too ... sometime in the near future :)

//Scull

Latest Version Found Here (v1.3.1) (http://www.ioftpd.com/scripts/script.php?id=7)

MIC_vBa
01-21-2004, 10:46 AM
could u do that as soon as possible ? :D

would be GREAT

scull
01-21-2004, 03:13 PM
Hi! ..

Version 1.3.2 Out! ...

I have changes the %dirsize cookie to be "smart" , it decides if it's B, KB ,MB or GB it selfe.

Latest Version Found Here (v1.3.2) (http://www.ioftpd.com/board/showthread.php?s=&threadid=853&perpage=1&pagenumber=140)

//Scull

mapis
01-21-2004, 04:32 PM
how? i dont know how, and in help, theres nothing about cokie :(

mapis
01-21-2004, 06:07 PM
aaa, its automatically... nice!

does have anybody some nice exaple of IRC msg? Color, etc...

scull
01-22-2004, 12:14 AM
Hi ..

MIC_vBa gave me some guide lines ...

Originally posted by MIC_vBa
itcl :

##color, underline, bold, reverse.
proc u {} {return \037}; #underline
proc r {} {return \026}; #reverse
proc c {} {return \003}; #color
proc b {} {return \002}; #bold

i hope this will help

so .. if you want underlined text just enter "\037your_message\037"
And if you want reverced test you enter "\026your_message\026"
And so on .. and if you mix it i THINK it would look something like this:

"\002%delname\002 (\037%nbrfile\037 Files) was autodeleted in \026[%section]\026 section, Saved \0035%dirsize\003".

so .. one code must be finisht with same code ( "\002hello\002" )

But how many colors there are i don't know ( i think it's 8 ).

Is this right ? .. someone ?

//Scull

Latest Version Found Here (v1.3.2) (http://www.ioftpd.com/board/showthread.php?s=&threadid=853&perpage=1&pagenumber=140)

Mouton
01-22-2004, 12:58 AM
CTRL-K in mIRC will show u the avail colors and the associated number. 16 colors there.

Xn3t
01-22-2004, 05:32 AM
works perfectly! g00d job.

mapis
01-22-2004, 09:06 AM
Mouton> I know :)) But if anybody have nice example... can show it

mapis
01-22-2004, 07:03 PM
my mistake :)

scull
01-23-2004, 12:42 AM
Thanx Xn3t ! :D :p

Latest Version Found Here (v1.3.2) (http://www.ioftpd.com/board/showthread.php?s=&threadid=853&perpage=1&pagenumber=140)

kebabber
01-29-2004, 08:02 PM
Hey scull , great thing about the dZSbot IRC Announce.
How about adding support for iobanana.tcl.
Since its a mod of the dZSbot it should be pretty easy :)

Go :banana: Go :banana: :D

scull
01-30-2004, 04:29 PM
Originally posted by kebab
Hey scull , great thing about the dZSbot IRC Announce.
How about adding support for iobanana.tcl.
Since its a mod of the dZSbot it should be pretty easy :)

Go :banana: Go :banana: :D

Hi kebab ..

Because i'm not a registered/paying user of IoBanana ( and probably never will be ) i have no desire to make my ioBk work with it. Maybe if i was given a registred version for free i might reconsider. ;)

//Scull

Pharaoh
01-30-2004, 09:40 PM
Originally posted by Scull
Hi kebab ..

Because i'm not a registered/paying user of IoBanana ( and probably never will be ) i have no desire to make my ioBk work with it. Maybe if i was given a registred version for free i might reconsider. ;)

//Scull

I was sure that all the script developer are getting access to all the scripts for free...at least I think you should...maybe you better ask dark0n3...

scull
01-31-2004, 12:31 AM
Originally posted by Pharaoh
I was sure that all the script developer are getting access to all the scripts for free...at least I think you should...maybe you better ask dark0n3...

Hi ..

I think that we ( script and util makers , small script writers anyway ( as i am ) ) have to pull our own weight as every one else when it comes to support other script makers.

If a script maker makes a script that he/she want's donations/money for, then i don't think he/she will give it away for free.

I write small VB utilities because i like it , and i like the idea of FREE scripts. Supporting the far BEST FTPD around is for me natural.

//Scull

Pharaoh
01-31-2004, 12:41 AM
Originally posted by Scull
Hi ..

I think that we ( script and util makers , small script writers anyway ( as i am ) ) have to pull our own weight as every one else when it comes to support other script makers.

If a script maker makes a script that he/she want's donations/money for, then i don't think he/she will give it away for free.

I write small VB utilities because i like it , and i like the idea of FREE scripts. Supporting the far BEST FTPD around is for me natural.

//Scull

Scull, since you are already registered ioftpd user (paid the $10) - you can get foundation license and full axs to all the none-free scripts for only $5 more.
However, giving access to all the scripters will make the scripts better because then you will be able to support each other scripts, and that's how you "pay" for it...which is IMHO worth much more than the actual extra $5...and that's how you can make ioByteKiller support iobanana...so as I suggested - maybe you should ask darkone for foundation access, I think you earned it... :)

Mouton
01-31-2004, 09:28 AM
Anyone who post a script publicly is entitled to have access to foundation section of /members
ie u can download foundation scripts and post foundation scripts.
I just changed ur account Scull.

scull
01-31-2004, 03:49 PM
Hi.

kebab: Thanx , I will add support for IoBanan in v2.0 :) .. It may take a while for me to complete v2.0 because it's a total rewrite. I'm changing whole .ini file layout and hopfully add support for MOST sfv checker file incomplete tags too.

Pharaoh: Thanx for your support! :)

Mouton: Thanx .. I diden't know this. Maybe i diden't read all messages in the forum hard enough. I'm writing v2.0 of iobk right now, and with this new info, I will add support for ioBanan too.

I might need some help sorting out the specs, i hope thats ok? ( as i'm not so familiar with Egg/Winbot or other IRC related stuff ).

//Scull

kebabber
02-03-2004, 06:56 PM
GREAT :))
Thanks alot .. No problem scull :-)

kukymann
02-12-2004, 04:23 AM
hi, i have problem with ioBK :(

My iobytekiller.ini:
ioftpd_log_path=c:/program files/ioftpd/logs
cstm_del_botout="%delname (%nbrfile Files) was auto Deleted In [%section] section, Saved %dirsize."
cstm_mov_botout="%delname (%nbrfile Files) was auto Moved From [%section] section, Saved %dirsize."
deny_incmpl_tag="[--INCOMPLETE--]" "(%CD%)-" "%RELEASE%"
deny_delete_tag="DNR-"
nuke_folder_tag="[Nuked]-"
sections=3
path "h:\movies2" m4 m1 14 path "h:\movies"
path "h:\games2" m4 m1 14 path "h:\games"
path "h:\music2" m4 m1 14 path "h:\music"

i have 10 outdated folders, but when i execute iobytekiller.exe he moved only first folder "TEST-GRP", but "TEST2-GRP" he doesnt and write this to log:

2004-02-12 10:22:00 [ MOVED ] - [ 06 Files, 2429001 Bytes ] - [ FROM ] - [ h:\movies2\TEST-GRP ] - [ TO ] - [ h:\movies ]
2004-02-12 10:22:00 [ ERROR ] - [ ?????? ] - [ Runtime 53/File not found ] - [ h:\movies2\TEST-GRP\TEST-GRP ] - [ Operation Aborted ]


can somebody help me? thx

scull
02-12-2004, 01:39 PM
Originally posted by kukymann
hi, i have problem with ioBK :(

2004-02-12 10:22:00 [ MOVED ] - [ 06 Files, 2429001 Bytes ] - [ FROM ] - [ h:\movies2\TEST-GRP ] - [ TO ] - [ h:\movies ]
2004-02-12 10:22:00 [ ERROR ] - [ ?????? ] - [ Runtime 53/File not found ] - [ h:\movies2\TEST-GRP\TEST-GRP ] - [ Operation Aborted ]


can somebody help me? thx

Hi kukymann!

Yes i know what the problem is! ... IoBk tells us that somewhere there is a faulty path because "file not found" error. So let us look at your config. The first line is not right configurated , the path to ioFTPD.log.

It should be :

ioftpd_log_path="c:\program files\ioftpd\logs"

With "" and \ ... ;)

i thing this will solve the issue! .. :)

//Scull

Latest Version Found Here (v1.3.2) (http://www.ioftpd.com/board/showthread.php?s=&threadid=853&perpage=1&pagenumber=140)

kukymann
02-12-2004, 01:59 PM
yeah, that's worked. Thx very much.

But you must edit NewManual.txt


Load the ioByteKiller.ini file.
ioftpd_log_path=c:/ioftpd/log
.............................

scull
02-12-2004, 04:03 PM
Hi! ..

Yes thanx for the info .. I'll change that .. I diden't have time to check what i wrote in the manual. Sorry.

... BUT the "default" iobytekiller.ini was right! .. so .. you must have changed it your selfe ;).

//Scull

MIC_vBa
02-27-2004, 05:03 AM
gives out runtime error on windows 2003

runtime error 53 : file not found

what to do now ?

scull
03-12-2004, 05:47 PM
Originally posted by MIC_vBa
gives out runtime error on windows 2003

runtime error 53 : file not found

what to do now ?

Did you change this line like this ( but with your path ) ?`

ioftpd_log_path="c:\program files\ioftpd\logs"

Please show me your iobytekiller.ini .. and mayby i can help you ?

// Scull

killer
04-05-2004, 12:32 AM
Windows 2003 Server + ByteKiller1.3.2.exe = runtime error 6 overflow.

ioftpd_log_path="D:\ioFTPD\logs"
cstm_del_botout="%delname (%dirsize Files) was auto Deleted"
cstm_mov_botout="%delname (%dirsize Files) was auto Moved"
deny_incmpl_tag="(incomplete)-" "-%CD%" "%RELEASE%"
deny_delete_tag="(NOPE)-"
nuke_folder_tag=""
sections=1
path "H:\Site\0Day\11" m3 500799328 688799328

Its test path :)

Thx for help :banana:

scull
04-08-2004, 05:08 PM
Hi .. Hmm .. Test to put a name in the nuke_folder_tag="" like nuke_folder_tag="TEST" or something .. and not leaving it blank ...

And try to put "-(%CD%)" instead .. Only for test ..

It should work! .. :) ...

// Scull

icefuzion
04-10-2004, 07:26 PM
Thanks Scull works great, tested on ioFTPD5.8.5.

I use ioBanana so i will look forward to ioBanana support in the future.

Great script mate, works flawless so far.

dEf
05-16-2004, 04:48 PM
scull:

plz i have this problem, could you check it?
i have fysically two hard drives, mapped to directories on 3rd drive. when i try to move (method m4 m3) from one dir/drive to another, i get 'Runtime 70/Acess Denied/File In Use'.
example
hdd1 mapped to c:\ftp\disk1
hdd2 mapped to c:\ftp\disk2
when i move from disk1 to disk2 i get that error
but when i move from disk1 to d:\test it works ok
even when i subst drive letter to disk2 dir and try to move to that substed letter, it works

thx for reply


edit: nevermind, don't use mapped drives anymore

Viper_2020
10-07-2004, 05:38 AM
Hi,

o.k i test it and it works :D

In IRC ther is a announce like this:
-- [IOBKILLER] + hrhrhr (05 Files) was auto Deleted In [DVDR] section, Saved 14,1KB.

But there is no announce with delete Nuke why?

In the log is:
2004-10-07 12:26:23 [NUKE DEL] - [ 08 Files, 14883 Bytes ] - [ D:\ioFTPD\site\DVDR ] - [ [Nuked]-zuzu ]

Viper_2020
10-07-2004, 08:07 AM
Hi,

o.k i test it and it works but it works only if i use iobyte manual if i put this in scheduler

ioBK = 0,5,10 0-11 * * EXEC ..\scripts\ByteKiller1.3.2.exe

it doesn´t work :(


In IRC ther is a announce like this:
-- [IOBKILLER] + hrhrhr (05 Files) was auto Deleted In [DVDR] section, Saved 14,1KB.

But there is no announce with delete Nuke why?

In the log is:
2004-10-07 12:26:23 [NUKE DEL] - [ 08 Files, 14883 Bytes ] - [ D:\ioFTPD\site\DVDR ] - [ [Nuked]-zuzu ] [/B][/QUOTE]

dudu
11-06-2004, 04:03 PM
Heya
Im trying to run this kewl prog
I've downloaded from http://www.softwarepatch.com/windows/vbrun6.htm those Visual Basic 6 SP6 Runtime library SP6 (vb6 dlls)
But its still not working, Scull help me here :)

Ruffneck
11-14-2004, 11:12 PM
how about that ioBanana support :)

dudu
12-14-2004, 07:27 AM
Originally posted by dudu
Heya
Im trying to run this kewl prog
I've downloaded from http://www.softwarepatch.com/windows/vbrun6.htm those Visual Basic 6 SP6 Runtime library SP6 (vb6 dlls)
But its still not working, Scull help me here :)

dudu
12-14-2004, 08:00 AM
problem solved

jenga201
08-26-2005, 08:42 PM
Hey, i have a small question....

If i set deny_delete_tag="hold"

And i rename a release to (hold)-FILENAME...will iobytekiller skip over that release? or do the first characters have to match up with the deny delete tag.

Thanks

jenga201
09-06-2005, 05:32 PM
anybody? >_<

I also have another question. Is it possible to have 2 separate tags that deny delete/move

i.e. deny_delete_tag="hold""REQ"

thanks