Backing Up Virtual Domains

Introduction to Domain Backups
----------------------------------------------------

If you use Cloudmin to manage one or more systems running Virtualmin, you can have it backup domains and global Virtualmin settings (like plans and templates) from one more more source system to multiple destinations. This can be used instead of configuring backups on each system separately, and to ensure consistency of backup and deletion policies between machines.

Setting Up Domain Backups
---------------------------------------------

To configure Cloudmin to backup virtual servers from several source systems to one or more destinations, follow these steps :

1. On the left menu, go to *Virtualmin Settings* -> *Virtual Server Backups*.
1. Click on *Add a new Virtualmin backup*.
1. Choose the machines to backup in the *Source systems* box, by using the right-arrow button to move them to the right-hand list.
1. Enter backup locations in the *Backup destination URLs* box. These can either be paths like `/backup` , or remote URLs like `ssh://user:pass@host/backup`
1. Select the virtual servers to include from the *Virtualmin domains to backup* list.
1. If you want backups to be automatically deleted, enter a maximum age in the *Delete old backups after* field. This requires that the destination path use `strftime`-format date codes, like %d and %m.
1. Select a schedule in the *When to backup* field.
1. Enter an email address to notify about failures in the *Send email on failure to* field.
1. Click the *Create* button.

One a backup has been setup, you can change what gets included and to where it is send by clicking on an entry in the *Virtual Server Backups* list. Backup configurations can also be deleted and started manually on the same page.

Setting Up Global Configuration Backups
-----------------------------------------------------------------

To instead backup global settings like plans on systems running Virtualmin, follow these steps :

1. On the left menu, go to *Virtualmin Settings* -> *Virtual Server Backups*.
1. Click on *Add a new Virtualmin backup*.
1. Choose the machines to backup in the *Source systems* box, by using the right-arrow button to move them to the right-hand list.
1. Enter backup locations in the *Backup destination URLs* box. These can either be paths like `/backup` , or remote URLs like `ssh://user:pass@host/backup`
1. Select the settings to include from the *Virtualmin global settings to backup* list.
1. Select a schedule in the *When to backup* field.
1. Enter an email address to notify about failures in the *Send email on failure to* field.
1. Click the *Create* button.