Backing up Server

Post Reply
kennxonline
Posts: 56
Joined: Sun Mar 23, 2014 2:58 pm

Backing up Server

Post by kennxonline » Tue Nov 10, 2015 6:00 pm

How would one back up there server information so people don't lose there levels and stats. I just bought a server PC and moving everything over to it. I have never done this before please bare with me. Any information or links on now to do this will really help thank you!

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Backing up Server

Post by kjLotus » Tue Nov 10, 2015 7:46 pm

look up how to back up a mySQL database (all the information is in the database)

kennxonline
Posts: 56
Joined: Sun Mar 23, 2014 2:58 pm

Re: Backing up Server

Post by kennxonline » Tue Nov 10, 2015 10:12 pm

kjLotus wrote:look up how to back up a mySQL database (all the information is in the database)
thanks, I think I understand it.

using information off of http://webcheatsheet.com/SQL/mysql_backup_restore.php

kennxonline
Posts: 56
Joined: Sun Mar 23, 2014 2:58 pm

Re: Backing up Server

Post by kennxonline » Wed Nov 11, 2015 2:50 am

wow this is beyond me I have no clue what im doing.

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Backing up Server

Post by kjLotus » Wed Nov 11, 2015 3:45 am

you can use mysqldump to dump the contents of a table to a file that you can run later - all the tables that start with "char" or "account" are the ones you would need

kennxonline
Posts: 56
Joined: Sun Mar 23, 2014 2:58 pm

Re: Backing up Server

Post by kennxonline » Wed Nov 11, 2015 7:28 pm

kjLotus wrote:you can use mysqldump to dump the contents of a table to a file that you can run later - all the tables that start with "char" or "account" are the ones you would need
I download mysqldump but my computer doesn't know how to start it or something I'm confused on what I do after I download it.

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Backing up Server

Post by kjLotus » Wed Nov 11, 2015 8:04 pm

you should have it already with your mysql install. It's a command line utility, so you run it through the command prompt

fnx
Posts: 51
Joined: Tue Feb 10, 2015 11:26 pm

Re: Backing up Server

Post by fnx » Thu Nov 12, 2015 1:31 pm

While probably not the best way... This is my easy way to do backups once a week when I do updates.

I have all my data in one directory

FFXI
---- MYSQLdata <<< Need to set this in MySQL or else it goes to default in MySQL directory
---- Server
---- Tools
---- Error Log

When I do updates I do the following
1) Stop all three parts of Darkstar
2) Stop MySQL
3) 7zip the entire directory and date it (FFXI-Server-2015-11-12.7z)
4) Check Git to see if any of the config files have changed in the last week.
(everything in the conf directory & /scripts/globals/settings.lua)
5) Git-Sync my Darkstar directory
6) Restart MySQL
7) Check sql directory for any updates to the files that are deleted by my "Save_Char_Data_SQL.bat"
8) Run "Save_Char_Data_SQL.bat" that imports all sql files and any execute any changed char data files.
9) Build all three servers
10) Restart servers

In all takes about 20 minutes unless there I miss a sql file or setting .lua
Best part is that if the new server build or database takes a dump I stop servers and MySQL, delete directory and then unzip back to that mornings working version which takes at most 5 minutes.

User avatar
whasf
Site Admin
Posts: 1312
Joined: Thu Jul 19, 2012 9:11 pm

Re: Backing up Server

Post by whasf » Thu Nov 12, 2015 7:56 pm

kjLotus wrote:you can use mysqldump to dump the contents of a table to a file that you can run later - all the tables that start with "char" or "account" are the ones you would need
delivery_box and auction_house too! :)
-- Whasf

User avatar
TeoTwawki
Developer
Posts: 527
Joined: Mon Jul 15, 2013 9:50 pm

Re: Backing up Server

Post by TeoTwawki » Sun Nov 15, 2015 4:47 am

And linkshell table if you want people those preserved.
Hi, I run The Demiurge server.


Image
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
PLS USE [ code ] CODE TAGS [ /code ] WHEN POSTING CODE
DO NOT PRIVATE MESSAGE ME ABOUT BUGS

Post Reply