BackupT2BCloud

From T2B Wiki
Jump to navigation Jump to search

Backup of VMs

The whole /var/lib/one directory is mounted from the volta fileserver, and regular scheduled snapshots are done automatically to tesla. You can access to these snapshots going through /var/lib/one/.zfs.

Backup of the OpenNebula database

The OpenNebula database being located in /var/lib/mysql, it is not backed up with the ZFS snapshots described in the previous section. That's why we have created a cron task to automatically do a regular dump of the mysql database into the /var/lib/one directory.

To avoid having to specify the user and password in the mysqldump command, we have created the file ~/.my.cnf with the following content :

[mysqldump]
user=mysqluser
password=secret