Webuzo Backup And Restore

From Webuzo Wiki
Jump to: navigation, search

Overview

This Page will help you in Creating and Managing your backup files. Creating and restoring backups in Webuzo is very easy. Once backup or restore process gets completed, the system sends a notification to Admin email address (if set) with the backup file name on success or encountered error(s). You can either create a new backup or restore, delete or download an existing backup file. The backups are stored in /var/webuzo/backup directory. Here are the Screenshots that shows how to create and manage backups form the panel.


Navigate

You can access backup files from Webuzo Enduser Panel > Server Utilities > Webuzo Backup
Webuzo backup.png


Full Backup

A full backup process will take a backup of the following:

  • User Home Directory
  • Domains
  • Cronjobs
  • User Databases (If MySQL is installed)
  • Mail Files (If Exim is installed)
  • DNS files (If BIND is installed)

Full backup.png


Home Backup

Here you can create or restore a backup of only the Webuzo user's home directory.

Home backup.png


Data Backup

Here you will be able to either backup or restore user created Databases. This will work only if you have an instance of MySQL installed and running on your machine.

  • You can not backup or restore MongoDB files using this utility.

Data backup.png


Mail Backup

You can backup and restore your mails from here. This utility will only work if you have Exim installed on your machine.

Mail backup.png


Logs

Logs for both backup and restore process can be viewed directly from the panel. If you want, you can clear the logs using the "Clear Logs" button

Logs backup.png


CLI

Backup and Restoration can also be done from the terminal using our cli utility. The below command will backup your home directory. You can either specify the type as 'full', 'home', 'data' or 'mail'.

 /usr/local/emps/bin/php /usr/local/webuzo/cli.php --webuzo_backup --backup=1 --type=home 

To restore a backup file say of type: home and name: homebackup_2016-05-15_07-52-50.tar.gz, run the following command:

 /usr/local/emps/bin/php /usr/local/webuzo/cli.php --webuzo_backup --restore=1 --type=home --filename=homebackup_2016-05-15_07-52-50.tar.gz
  • You will need the root privileges to run this utility.

Remote Backup

First, we need to add a Backup server to upload our backup files.

Add Backup Server

Steps:

  • Click on the Backup Server tab on the Webuzo Backup page.
Click add server tab.jpg
  • After the tab reveals the Backup Servers table click on Add Backup Server button.
Click add server button.jpg
  • Enter the Backup server details according to the input field provided in the form, you can Test the connection to your server and then hit Submit.
Save backup server details.jpg

Do a Remote Backup

Steps:

  • On the Webuzo Backup page click on the Backup Now button
Backup now.jpg
  • Configure the backup process according to your needs and hit Backup Now.
Configure backup now.jpg

Required Inputs

  • Select backup Server - Select the Remote server to which you want to upload your backup.
  • Backup Type - Select the Backup type.
  • Skip Softaculous Backup - Check the box if you don't want to include the Softaculous Backup directory in your Webuzo Backup. (Only applicable for Full and Home backup type)
  • You can check the logs for the Backup process status.

Do a Remote Restore

Steps:

  • On the Webuzo Backup page click on the restore button corresponding to the Backup file you want to restore.
Restore now.jpg
  • You can check the logs for the Restore process status.