-
Notifications
You must be signed in to change notification settings - Fork 29
I want to back up my files and database
If you want to back up your important data, there is a few things to consider:
- your data pack (let's assume it's in /home/otsmanager/forgottenserver)
- your website files (location: /home/otsmanager/www or /home/otsmanager/www/public_html)
- your MySQL database dump
Pretty much everything else does not matter - it will be recreated when you purchase a new OTS Hosting Service or run our installation script - depending on which you use.
When it comes to backing up your files, this is simple. You can check out our article on how to share files to simply download a backup to your PC.
Simply use those two commands:
otsmanager@176-31-89-137:
$ transfer /home/otsmanager/forgottenserver otsmanager@176-31-89-137:$ transfer /home/otsmanager/www
TIP: The server automatically makes MySQL backups and stores them in /var/lib/automysqlbackup/
.
In order to transfer your MySQL database, you first need to export it to a file. Assuming your database name is forgottenserver run:
otsmanager@176-31-89-137:~$ mysqldump forgottenserver | gzip > forgottenserver.sql.gz
Now you can transfer it as usual:
otsmanager@176-31-89-137:~$ transfer forgottenserver.sql.gz
Powered by Spigu.net Team | Get OTS Hosting Service with support | Visit our Otland Thread