Mozzie Solutions Limited

Backup and Restore of MySQL Server - Linux

This articla describes how to use Mozzie Backup to backup your MySQL server and how you can restore MySQL server from the database backup files.

Requirements

  • Mozzie Backup should be installed onto the computer running MySQL server
  • Data from MySQL server will be backed up to a temporary directory before being sent to  the Mozzie Backup Server
  • You will require a MySQL account to be used for connecting from localhost

Add two new MySQL accounts for Mozzie Backup

mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'some_pass';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost.localdomain' IDENTIFIED BY 'some_pass';
mysql> FLUSH PRIVILEGES;

These are superuser accounts with full privileges to do anything with a password of some_pass

Overview

Mozzie Backup will backup your MySQL server in the following sequence:
  1. Run all Pre-Commands of this backup set
  2. All database(s) (either local or external) selected are backed up to a temporary directory specified in its backup set
  3. Run all Post-Commands of this backup set
  4. Upload all backup files from the temporary directory to Mozzie Offsite Backup Server
  5. Remove temporary files from the temporary directory if [Setting] -> [Temporary Directory for storing backup files] is enabled

How to backup MySQL server on Linux (command line mode)


If you want to setup Mozzie Backup to backup MySQL server running on Linux using command line mode, please do the followings:

  1. Logon to the web interface of Mozzie Backup Server using the backup account (doesn’t matter if it is not from the Linux server running the MySQL server to be backed up)
  2. Create a new backup set by pressing the [Backup Set] -> [Add] button
  3. Select the [Backup Set] -> [Type] -> [MySQL Database Server] radio button and press the [Update] button (which can be found at the bottom of the page)
  4. Setup all [Backup Set] -> [Database Backup Setting]

Settings

Descriptions

MySQL Username (e.g. root)

A MySQL user account that has backup access to the databases to be backed up (e.g. root). Please refer to the [Requirements] section for details

MySQL Password

Password of the MySQL user account being used

Host

IP address / Hostname of the MySQL Server, e.g. localhost

MySQL Connection TCP/IP Port

TCP/IP port used to access the MySQL Server (default: 3306)

Path to MySQL backup utility (mysqldump)

Full path to where mysqldump can be found (e.g. /usr/bin/mysqldump)

Temporary Spooling Directory

A temporary directory to be used to store all MySQL database dump files before they are uploaded to the backup server

Enable Delete Temp. File

Whether to delete the temporary MySQL database dump files after they are uploaded to the backup server








r


 

Sign-Up

Free 15-day trial includes 10GB storage for backing up email, pictures and files
Try online backup for free, no set-up fee, no credit card, to find out how easy online backup is to use

Site Security

Our site uses the same security standards used for online banking
Copyright © 2010 Mozzie Solutions Limited. All Rights Reserved.
Contact Mozzie.co.nz if you would like assistance with your web site .