Backing up Server
-
- Posts: 56
- Joined: Sun Mar 23, 2014 2:58 pm
Backing up Server
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!
Re: Backing up Server
look up how to back up a mySQL database (all the information is in the database)
-
- Posts: 56
- Joined: Sun Mar 23, 2014 2:58 pm
Re: Backing up Server
thanks, I think I understand it.kjLotus wrote:look up how to back up a mySQL database (all the information is in the database)
using information off of http://webcheatsheet.com/SQL/mysql_backup_restore.php
-
- Posts: 56
- Joined: Sun Mar 23, 2014 2:58 pm
Re: Backing up Server
wow this is beyond me I have no clue what im doing.
Re: Backing up Server
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
-
- Posts: 56
- Joined: Sun Mar 23, 2014 2:58 pm
Re: Backing up Server
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.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
Re: Backing up Server
you should have it already with your mysql install. It's a command line utility, so you run it through the command prompt
Re: Backing up Server
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.
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.
Re: Backing up Server
delivery_box and auction_house too!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
-- Whasf
Re: Backing up Server
And linkshell table if you want people those preserved.
Hi, I run The Demiurge server.
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
DO NOT PRIVATE MESSAGE ME ABOUT BUGSPLS USE [ code ] CODE TAGS [ /code ] WHEN POSTING CODE