Updated

Blasto121

New Adventurer
MSC Developer
The Pirates of Dreadwind
Joined
May 24, 2006
Messages
1,967
Reaction score
0
Age
38
Location
Eugene, OR
I have gone through the different posts fuzzy made and edited them to reflect the new changes as needed, I don't think I forgot anything.

the central server name will stay FuzNet

backups happen every 6 hours starting at 12AM, this means a backup at noon and midnight, along with a backup at 6 am and 6 pm. For entertainment reasons I could make even more backups, but thothie already thinks its alot of files :D

and of course the new address: blastnet.bounceme.net:5711

Everything else should remain the same.
 

Thothie

Administrator
Staff member
Administrator
Moderator
MSC Archivist
Joined
Apr 8, 2005
Messages
16,342
Reaction score
326
Location
lost
Actually...

...If you could rig it to make backups as often as you like, every hour for all I care, I'd just rather it not upload archives to the server so often, as it means I have to expire archives more religiously... Indeed, it may not be a bad idea to separate the archiver, and upload batch files, and run the uploader once a day, and the archiver every hour (or however-often you feel your hard-drive space can handle).
 

Blasto121

New Adventurer
MSC Developer
The Pirates of Dreadwind
Joined
May 24, 2006
Messages
1,967
Reaction score
0
Age
38
Location
Eugene, OR
that wouldn't be to hard, under the current setup it only uploads to your server twice a day, and doing local backup 4 times a day.

and after a quick calculation I could easily run it every hour, I could keep roughly 15,000 backups before the HDD was full, assuming each backup was about 5mb. Then make it backup to your sever every midnight or something, that way we have one off site backup in case the server randomly bites it, and of course for the mappers to have there test characters.

think I will make this into a poll, because it is possible, and when I took this on I was expecting to use the 80gig HDD to its fullest extent.
 

The Man In Black

Administrator
Staff member
Administrator
Moderator
RiP
Joined
Jul 9, 2006
Messages
6,904
Reaction score
71
Do you mean the backup of ALL characters would total to 5MB? 'cause a 4kb character is pushing overflow.
 

Thothie

Administrator
Staff member
Administrator
Moderator
MSC Archivist
Joined
Apr 8, 2005
Messages
16,342
Reaction score
326
Location
lost
Yeah, each FN archive is currently about 2.6MB (all the characters rar'd together)... Could easily get to 5MB.

I don't think we need "live" archives more than a month or two old, so it'd prob just be wise to wipe them every so often and depend on the on-line archives for characters older than that.

I was thinking we should re-write the batch file to give a more sensible file format. Maybe along the lines of YYYY,MM-DD_HH.rar instead of the raw-dos time format. I would have done that before, but I couldn't think of a dependable way to setup that file format in a batch file without using an external call.

This however would work, me thinks...
Code:
@echo off
for /f "tokens=5-8 delims=:. " %%a in ('echo/^|time') do (set hh=%%a)
if 1%hh% LSS 20 set hh=0%hh%

set t=2&if "%date%z" LSS "A" set t=1
for /f "skip=1 tokens=2-4 delims=(-)" %%a in ('echo/^|date') do (
	for /f "tokens=%t%-4 delims=.-/ " %%d in ('date/t') do (
		set %%a=%%d
		set %%b=%%e
		set %%c=%%f
	)
)

set file_name=%yy%,%mm%-%dd%_%hh%.rar
echo %file_name%

Would return (for April 21st, 2007, 3:21pm):
Code:
2007,04-21_15.rar

I *think* it should always scrawl out two-digits for single digit numbers, so this would make both the windows alphabetizing behave, and allow us to eventually work up some sort of automated restore system more easily. Dunno if Cernob is ever going to come back to us on that (shoulda hit him up for whatever source me managed to code thus far).

This would also let me write up that backup-restore program where I can just punch in the SteamID instead of hunting for backups. Could also rig such a thing to check if the guy being restored is a cheater and show how often he's been restored, and so on.
 
Top