ucc.log backup

Discussions about Servers
Post Reply
Hank
Novice
Posts: 21
Joined: Wed Oct 21, 2015 4:17 pm

ucc.log backup

Post by Hank »

Hey guys, i have a question hopefully someone can solve/help with.

I rent a windows based UT server from a server provider and if my server crashes the ucc.log file overwrites its self upon restart. Heres the problem, i cant see the log/reason for the crash.

So what im asking is there any .bat file or something i can use to backup my ucc.log file everytime my server crashes. Can i add something to my server directory that will do this? ( even tho the server is rented ) or do i have to ask my host to do something. I would prefer doing this myself, if possible?

Thanks for reading guys.
Chris
Experienced
Posts: 134
Joined: Mon Nov 24, 2014 9:27 am

Re: ucc.log backup

Post by Chris »

Hello,

Add this to your startup script;
copy ucc.log uccbackup.log

You'd want to add it right after the ucc server commandlet line.

Regards, Chris
Hank
Novice
Posts: 21
Joined: Wed Oct 21, 2015 4:17 pm

Re: ucc.log backup

Post by Hank »

My server is rented and i dont have a start up batch file. It windows based and i have ftp access,tc admin control panel with command line access. Is it possible still to force my ucc.log to backup after crashes·
$carface
Skilled
Posts: 212
Joined: Sat Jul 23, 2011 10:58 pm

Re: ucc.log backup

Post by $carface »

You would need to do what Chris wrote. Only problem with his solution is, it will always overwrite uccbackup

I have a bat which calls another bat (which does the rotate logging) and then it also calls a .txt which is where the command line is stored.

Who is your host?
Chris
Experienced
Posts: 134
Joined: Mon Nov 24, 2014 9:27 am

Re: ucc.log backup

Post by Chris »

Don't you have access to your startup line through TC Admin?
You might want to contact the host and tell them that you need that command to run right after, and explain why.
Otherwise you might want to copy your server to your local machine where you can run it through batch.

Regards, Chris
Hank
Novice
Posts: 21
Joined: Wed Oct 21, 2015 4:17 pm

Re: ucc.log backup

Post by Hank »

My host is Vilayer.com

I have access to the "command line manager" through Tc Admin

Code: Select all

server DM-Morpheus?game=Botpack.DeathMatchPlus?mutator=MapVoteLA13.BDBMapVote multihome=108.65.324.11
But not sure where to go from there, Sorry for my lack of knowledge, im learning as i go :tu:
User avatar
sektor2111
Godlike
Posts: 6410
Joined: Sun May 09, 2010 6:15 pm
Location: On the roof.

Re: ucc.log backup

Post by sektor2111 »

Usually Win servers should have advantage of an easy setup. BAT for running servers are handy to configure in order to gain all logs. Here is what I have with saving log based on time and hour in a text file outside (or inside) UT server folder >
[attachment=0]Starts.zip[/attachment]
You can use and modify them as a model - take in account paths used.
Attachments
Starts.zip
(873 Bytes) Downloaded 85 times
Higor
Godlike
Posts: 1866
Joined: Sun Mar 04, 2012 6:47 pm

Re: ucc.log backup

Post by Higor »

This one's good for repeated crashtests, just remove the Pause command lel if you're using it for a live server.

Code: Select all

@echo off
:restart_server
ucc server CTF-Coret?Game=Botpack.CTFGame?Mutator=CacusMapVote.CacusMapVote -log=Server.log

del Server_old_5.log
ren Server_old_4.log Server_old_5.log
ren Server_old_3.log Server_old_4.log
ren Server_old_2.log Server_old_3.log
ren Server_old_1.log Server_old_2.log
ren Server.log Server_old_1.log

echo HUEHUE Server has crashed, press any key to restart.
pause
goto restart_server
Chris
Experienced
Posts: 134
Joined: Mon Nov 24, 2014 9:27 am

Re: ucc.log backup

Post by Chris »

I have't used TC admin alot, but it seems you can only modify the startup line of your server, and not really add any other commands.
Like I said before, this is something you might want to discuss with the staff of your hosting company.

Regards, Chris
User avatar
Chamberly
Godlike
Posts: 1963
Joined: Sat Sep 17, 2011 4:32 pm
Personal rank: Dame. Vandora
Location: TN, USA
Contact:

Re: ucc.log backup

Post by Chamberly »

Bookmarking this. Def need a server log rotator. Trying to contact host and see which one is acceptable...

Well I should ask NFO Server and see how they are doing it because they only have a server.log (current) and a server-old.log.
Image
Image
Image Edit: Why does my sig not work anymore?
User avatar
Darkelarious
Skilled
Posts: 175
Joined: Sat Feb 08, 2014 12:02 pm
Personal rank: 333networks admin
Location: Phobos Moon
Contact:

Re: ucc.log backup

Post by Darkelarious »

--Darkelarious
Image
Masterserver | Discord Channel
Oh, and we still are ready to receive donations. The url works, right? It doesn't seem to be doing anything...
MrLoathsome
Inhuman
Posts: 958
Joined: Wed Mar 31, 2010 9:02 pm
Personal rank: I am quite rank.
Location: MrLoathsome fell out of the world!

Re: ucc.log backup

Post by MrLoathsome »

I run something similar to the above script on my servers, but I include a time/date stamp in the
filename. This eliminates the need for the renaming, and lets you save all the crash logs.
blarg
Post Reply