Introduction
This information applies to Cruzio’s Website Hosting services. If you purchased Web and domain hosting with Cruzio after July 2006, you likely have Website Hosting services. Otherwise, you may have a Classic domain.
Many websites and Web applications use MySQL databases to store their content and settings. Learn how to protect your database by backing it up, and how to restore it in case of problems.
Back up your database regularly, so that you always have a recent copy to restore.
Be careful when restoring your backup to an existing database, since your backup will overwrite it. Make sure you are restoring the data you want to the destination you want. Otherwise, your website or application may become unusable.
Tools for backing up and restoring your database
Choose one of the tools below: Installatron, Control Panel Backup, or phpMyAdmin.
- Installatron: If you have used Installatron to install a Web application, such as WordPress or Joomla, this is the easiest tool to use. It backs up files as well as databases.
- Control Panel Backup: The next easiest backup tool is the Control Panel Backup. It backs up files as well as databases, and can do scheduled backups.
- phpMyAdmin: The most sophisticated tool is phpMyAdmin. We only recommend using phpMyAdmin if you are already familiar with it, since making a mistake can easily destroy your database.
Installatron
Installatron is Cruzio’s one-click installer for Web applications, such as Joomla or WordPress.
Backing up with Installatron
- Go to http://login.cruzio.com and enter your domain name. Select “Control Panel” and click “Go”. Then log in with your admin username and password.
- In the sidebar, click the Installatron link.
- Your Web application(s) will appear. Find the one you want to back up and click its “create backup” button.
- The Installatron backup wizard will launch. Click the Next button to begin.
- Select the files, directories, and database tables you want to back up. Click Next.
- Click Submit.
- Click Complete.
Restoring with Installatron
- Go to http://login.cruzio.com and enter your domain name. Select “Control Panel” and click “Go”. Then log in with your admin username and password.
- In the sidebar, click the Installatron link.
- To the right of the Installatron page heading, click the My Backups tab.
- Your backup(s) will appear. Find the one you want to restore and click its “restore this backup” button.
- The Installatron restore wizard will launch. Click the Next button to begin.
- Select the files, directories, and database tables you want to restore. Click Next.
- Click Submit.
- Click Complete.
Control Panel Backup
This backup tool is built into your control panel. It is limited to storing only a single backup per domain at any time.
The Control Panel Backup tool does not have a built-in restore function. You will need to retrieve your backup with an FTP application, and you will need to use phpMyAdmin to restore it.
Backing up with Control Panel Backup
- Go to http://login.cruzio.com and enter your domain name. Select “Control Panel” and click “Go”. Then log in with your admin username and password.
- In the sidebar, click Backup Your Account.
- Your domains will be listed. Click the small icon under the B (for backup) column for the domain you want to back up.
- Select the directories and databases you want to back up. Click “Backup now!”
- To schedule a recurring backup, in the list of domains, click the small icon under the S (for scheduling) column for the domain you want to back up.
- If “Disable scheduled backup” is selected, click its checkbox to deselect it. Select the items you want to back up, set a schedule (an asterisk means it will repeat every hour, day of the week, or day of the month), and enter an email address for notification. Click the Schedule button.
Restoring with Control Panel Backup
If you are not familiar with FTP, follow our instructions for Website Publishing with Filezilla FTP.
- Open your FTP program, and connect to your Web host.
- Navigate to the “backups” directory.
- Your database backup is a file ending in the extension “.mysql”. Download it to your computer.
- Follow the phpMyAdmin steps below for restoring your database.
phpMyAdmin
phpMyAdmin is a sophisticated tool for managing MySQL databases. It is as easy to destroy a database as it is to back it up. Use with caution.
If you have a Classic domain, you do not have the ability to restore any MySQL database backups. You may want to contact Cruzio and request a migration of your domain hosting to Website Hosting services.
Backing up with phpMyAdmin
- Go to http://login.cruzio.com and enter your domain name. Select “Control Panel” and click “Go”. Then log in with your admin username and password.
- Select the domain with the database you want to back up. If your Cruzio domain is on Host 6 or above, you’ll find the domain by going to the Main Menu on the upper left and clicking Domains.If you do not know what Host number your domain is on, after you log into your control panel, look at the address (URL) at the top of your browser. You will see it start with “https://host” followed by a number. That number is your domain’s Host number.
- Click the Databases icon. If you are on Host 1, 2, 3, 4, or 5, it will be under the Services section.If you are on Host 6 or above, it will be under the Applications & Services section.
- Choose your database by clicking on the database’s name.
- If you are on host 1, 2, 3, 4, or 5, click the “DB WebAdmin” icon.If you are host 6 or above, click the “Webadmin” icon.
- phpMyAdmin will open in a new window, so be sure your browser does not block pop-ups.
- In the sidebar of the phpMyAdmin window, click the database you want to back up.
- Toward the top of the page, click the Export tab.
- In the SQL Options area, under Structure, select “Add DROP TABLE” and “Add IF NOT EXISTS”. Leave all other options as they are.
- Near the bottom of the page, select “Save as file.” Optionally, in the “file name template” box, you can append the date, like this:
__DB__01_01_2011
- At the bottom right, click Go.
- A file with the extension .sql should download to your computer. This is your database backup. Store it in a safe location.
Restoring with phpMyAdmin
- Go to http://login.cruzio.com and enter your domain name. Select “Control Panel” and click “Go”. Then log in with your admin username and password.
- Navigate to your domain’s Databases screen, as you did above in steps 2 and 3 of the backup procedure.
- Choose your database by clicking on the database’s name. If the database name does not already exist, create a new database by first clicking the “Add New Database” icon. Make sure the “Database name” matches the name of the database you are importing. Leave “Type” and “Database server” as they are and click “OK”.
- If you just created a new database in the previous step instead of clicking on an existing database, you will need to create an admin user before you can access the new database. Click the “Add New Database User” icon. For “Database user name”, make it match the name you just gave your database. For “New password” and “Confirm Password”, enter what you want your database admin password to be. When done, click “OK”.
- If you are on host 1, 2, 3, 4, or 5, click the “DB WebAdmin” icon.If you are host 6 or above, click the “Webadmin” icon.
- phpMyAdmin will open in a new window, so be sure your browser does not block pop-ups.
- In the sidebar of the phpMyAdmin window, click the database you want to restore to.
- Toward the top of the page, click the Import tab.
- In the “File to import” section, click the button to browse and choose a file from your computer. In the window that pops up, navigate to the .sql file you exported when you were backing up. Double-click the file to select it.
- Once you have located your .sql database file, double-click it to open it. The file importing window should close.
- At the bottom right, click “Go”.
- You should see a message near the top of the page, letting you know whether the import finished successfully.