Backup Dude

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
goncafa
Posts: 385
Joined: Thu Aug 05, 2010 2:10 pm
Location: Santiago, Chile

Backup Dude

Post by goncafa »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision 4488:
L2JDP Revision 7760:

Hi all

I want to make daily backup of my database, but i dont know if i need shoutdown my gameserver for do the backup correctly or i can backup while server is running.

I ask becouse i can have my gameserver one week running, but i think make backup each week is not safe.
Best Regards

PS: im sorry my bad english.
Image
User avatar
AntV
Posts: 177
Joined: Mon May 10, 2010 10:46 pm

Re: Backup Dude

Post by AntV »

If you only want to backup the database, then simple backup it using Navicat, pmpmyadmin or any program you are using to create and manage the databases. Doing that also does not require to shut down the server (although it is not a bad idea)
User avatar
tukune
Posts: 533
Joined: Sun Mar 29, 2009 2:35 pm
Location: Japan

Re: Backup Dude

Post by tukune »

mysqldump
User avatar
pinkcore
Posts: 247
Joined: Fri Jul 24, 2009 3:04 am
Location: Czech Republic

Re: Backup Dude

Post by pinkcore »

I'm doing backup every hour for all my projects and I'm removing 7 days old backups. Simply use your cron.

PS: You don't need to restart / shutdown your server or something else. ;)
PS2: Never use Navicat or remote MySQL access, use phpmyadmin(you don't need remote access beacuse you are accessing server from localhost...)
I'm not here only for food!
User avatar
goncafa
Posts: 385
Joined: Thu Aug 05, 2010 2:10 pm
Location: Santiago, Chile

Re: Backup Dude

Post by goncafa »

pinkcore wrote:I'm doing backup every hour for all my projects and I'm removing 7 days old backups. Simply use your cron.

PS: You don't need to restart / shutdown your server or something else. ;)
PS2: Never use Navicat or remote MySQL access, use phpmyadmin(you don't need remote access beacuse you are accessing server from localhost...)
Hi pinkcore

Thank you for response :)

Can you share your cron for bakcup each hour and delete files with 7 days or more?

is your crone for Linux? becouse my server is running on CentoS 5.5
Best Regards

PS: im sorry my bad english.
Image
User avatar
kimeraweb
Posts: 55
Joined: Sat Jul 31, 2010 5:33 pm
Location: Deutschland
Contact:

Re: Backup Dude

Post by kimeraweb »

Sorry but you need server shutdown (and hold it off-line) for good backup.

First of all:

because, while your server is running, doesn't record the newest data in database.
It uses ram for speed, no disk access which is very slow.

And second:

If you let players playing while you are in backup, could happen (sure will) players create new object ID which will be referred in some parts of the tables and not in others.

Unless you get a backup in few milliseconds, you're doing wrong, and you will be noticed when console starts with messages because you're using a corrupted database or maybe not, because you couldn't restore it.
GS: 4470
DP: 7733
Post Reply