- Posts: 1
- Thank you received: 0
How to restore backups in putty?
1 year 11 months ago #8
by Vide Noir
How to restore backups in putty? was created by Vide Noir
As title says, i wish there was some sort of help about that.
Please Log in or Create an account to join the conversation.
- Marisa Giancarla
- Offline
- Administrator
Less
More
- Posts: 7
- Thank you received: 0
1 year 10 months ago #9
by Marisa Giancarla
Replied by Marisa Giancarla on topic How to restore backups in putty?
My backup scripts create 2 files: one of the java/game code, and one of the mysql data. It keeps the last 5 of these each. To restore I recommend turning off respawn in cmc and reset the mud process. The do "cd ~" togo to your home root. Then see what backups you have by using "ls -l ~/backups".
To restore just the java files do:
To restore the mysql it is similar. But differs if you have the backupninja script (older installs) or the new version. If you don't know what version you haveĀ see what the sql backup files are named. If they are like "coffeemud.sql-1" in the main backup directory you have the new version.If you have a subdirectory for the mysql you have the older backupninja version. Here are the steps for that:
The old method is similarĀ but the sql files were compressed. Would prefer to migrate you to the new method so contact me to migrate your server or ask me how to update it yourself... Make sure you put the ";" at the end of the lines as I have them above.
To restore just the java files do:
- mv CoffeeMud CoffeeMud-keep
- tar xvzf ~/backups/<file you want to restore>
To restore the mysql it is similar. But differs if you have the backupninja script (older installs) or the new version. If you don't know what version you haveĀ see what the sql backup files are named. If they are like "coffeemud.sql-1" in the main backup directory you have the new version.If you have a subdirectory for the mysql you have the older backupninja version. Here are the steps for that:
- mysql -p
- <enter your mysql account password> - if you don't know what this is just ask me.
- drop database coffeemud;
- create database coffeemud;
- use coffeemud;
- source <the mysql file you want to restore>
- quit;
The old method is similarĀ but the sql files were compressed. Would prefer to migrate you to the new method so contact me to migrate your server or ask me how to update it yourself... Make sure you put the ";" at the end of the lines as I have them above.
Please Log in or Create an account to join the conversation.
- Marisa Giancarla
- Offline
- Administrator
Less
More
- Posts: 7
- Thank you received: 0
1 year 10 months ago #10
by Marisa Giancarla
Replied by Marisa Giancarla on topic How to restore backups in putty?
Added to the FAQs here:
pocketmud.com/index.php/contact-us/support-portal?view=faq
Please Log in or Create an account to join the conversation.
Time to create page: 0.284 seconds