ucc.log backup
ucc.log backup
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.
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.
Re: ucc.log backup
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
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
Re: ucc.log backup
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·
Re: ucc.log backup
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?
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?
Re: ucc.log backup
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
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
Re: ucc.log backup
My host is Vilayer.com
I have access to the "command line manager" through Tc Admin
But not sure where to go from there, Sorry for my lack of knowledge, im learning as i go
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
- sektor2111
- Godlike
- Posts: 6410
- Joined: Sun May 09, 2010 6:15 pm
- Location: On the roof.
Re: ucc.log backup
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
Re: ucc.log backup
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
Re: ucc.log backup
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
Like I said before, this is something you might want to discuss with the staff of your hosting company.
Regards, Chris
- Chamberly
- Godlike
- Posts: 1963
- Joined: Sat Sep 17, 2011 4:32 pm
- Personal rank: Dame. Vandora
- Location: TN, USA
- Contact:
Re: ucc.log backup
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.
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.
- Darkelarious
- Skilled
- Posts: 175
- Joined: Sat Feb 08, 2014 12:02 pm
- Personal rank: 333networks admin
- Location: Phobos Moon
- Contact:
Re: ucc.log backup
--Darkelarious
Masterserver | Discord Channel
Oh, and we still are ready to receive donations. The url works, right? It doesn't seem to be doing anything...
Masterserver | Discord Channel
Oh, and we still are ready to receive donations. The url works, right? It doesn't seem to be doing anything...
-
- 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
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.
filename. This eliminates the need for the renaming, and lets you save all the crash logs.
blarg