Server wipe/rollback

If something doesn't fit in any other forum then post it here.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Gabber
Posts: 32
Joined: Sat Sep 03, 2011 7:47 am

Server wipe/rollback

Post by Gabber »

Hello everyone,

I'm creating l2j server and I'll put it on open beta test. After it I want to wipe the server but I want all my made changes to remain the same, except players data, and I want my server to start from beginning how it was on first launch.

If you understood what I meant, please help me :))))
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: Server wipe/rollback

Post by MELERIX »

restore your backup, thats all.
Gabber
Posts: 32
Joined: Sat Sep 03, 2011 7:47 am

Re: Server wipe/rollback

Post by Gabber »

Is this backup made automatically (if yes, where?) or I have to make it manually (if yes, how?)
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: Server wipe/rollback

Post by MELERIX »

Gabber wrote:Is this backup made automatically (if yes, where?)
yes, by database_installer, in tools folder ;)
Gabber wrote:or I have to make it manually (if yes, how?)
well, if you are an admin you should have at least a "basic knowledge" about how make a backup manually, other way use google xD
Gabber
Posts: 32
Joined: Sat Sep 03, 2011 7:47 am

Re: Server wipe/rollback

Post by Gabber »

I just have basic knowledge in java programming. Other things are pretty much trees in the forest :D
Gabber
Posts: 32
Joined: Sat Sep 03, 2011 7:47 am

Re: Server wipe/rollback

Post by Gabber »

So I need to do full database install ? And everything what players made will be deleted including them ?
blarke
Posts: 77
Joined: Thu Nov 18, 2010 7:48 am

Re: Server wipe/rollback

Post by blarke »

Easier if you just drop and recreate your whole "characters" and "accounts" table since the server will clean up most of the junk upon the next backup. However, it will leave many things in (ie. items in the item tables) that are not connected to any characters after that which may impact performance.
Basically if you are doing any modifications on your DB, you will very likely do it on the custom tables anyway, so wiping and rebuilding the DB should suffice...

And by the way, this has nothing to do with java knowledge.

cheers
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: Server wipe/rollback

Post by MELERIX »

Gabber wrote:So I need to do full database install ? And everything what players made will be deleted including them ?
if you want to wipe and reset your whole db, yes, full install will delete and import new clean tables ;)
Gabber
Posts: 32
Joined: Sat Sep 03, 2011 7:47 am

Re: Server wipe/rollback

Post by Gabber »

Ok for example:

Some hackers hacked my server and spawned some raid bosses in server. How do I do a rollback to exact date?
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: Server wipe/rollback

Post by MELERIX »

restoring a backup from that day (if you have one ofc)
Gabber
Posts: 32
Joined: Sat Sep 03, 2011 7:47 am

Re: Server wipe/rollback

Post by Gabber »

And that backup would be manually made by raring server folder ofc? :)))
blacksea
Posts: 458
Joined: Fri Oct 05, 2007 1:29 am

Re: Server wipe/rollback

Post by blacksea »

Gabber wrote:And that backup would be manually made by raring server folder ofc? :)))
only db you need... server folders you have them in your pc..

to create backup
mysqldump -u root -p database_name > blabla.sql

to restore your backup
mysql -u root -p database_name < blabla.sql
Gabber
Posts: 32
Joined: Sat Sep 03, 2011 7:47 am

Re: Server wipe/rollback

Post by Gabber »

Maybe this file gs_backup.sql in tools folder has all the db information?

I just execute this sql after delete all l2jgs tables in Navicat and my backup is good to go ?

And do I need to do database upgrade or full install ?
Post Reply