Forum
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Full and incremental backup XCP-NG + HA-LIZARD? 5 months 4 weeks ago #2384

  • Varga B.
  • Varga B.'s Avatar Topic Author
  • Offline
  • Posts: 10
Hi,

If I got 2 server as recommended, works fine:

1. How can I backup only the XCP-NG server with HA-LIZARD, only the server files, and the full server, without stop, what is the recommended way?

2. from running VM image, you prefer to save snapshot as backup, with what settings if MySQL running inside?

Thank you.

Please Log in or Create an account to join the conversation.

Last edit: by Varga B..

Full and incremental backup XCP-NG + HA-LIZARD? 5 months 4 weeks ago #2388

  • Salvatore Costantino
  • Salvatore Costantino's Avatar
  • Offline
  • Posts: 696
Backing up the server settings (dom0)
- you can backup the host (xcp-ng) settings with pool-dump-database. This backup your host and all of the metadata associated with each of its VMs
xe pool-dump-database file-name=<BACKUP_FILE_NAME>
- you can backup all of the ha-lizards (and iscsi-ha) configuration files and parameters using the ha-cfg CLI tool
iscsi-cfg backup
Please note that ha-lizard will store all of its data in the xcp-ng database. So, if you perform this backup first and then the pool-dump-database, you will have the added bonus of having the setting captured in the pool DB backup.

Backing up VMs
HA-Lizard ships with a backup tool that can backup the pool database and any VMs. It can be set to run with cron to automatically handle scheduled backups with a retention of X days. This tool will perform a snapshot backup of running VMs. Regarding a sql DB server backup, it will work fine as long as you can successfully snapshot the VM (ensuring enough disk space on your SR and moderate R/W on the VM). Run the below for details:
/etc/ha-lizard/scripts/vm_backup.sh --help
The following user(s) said Thank You: Varga B.

Please Log in or Create an account to join the conversation.

Last edit: by Salvatore Costantino.

Full and incremental backup XCP-NG + HA-LIZARD? 5 months 4 weeks ago #2391

  • Varga B.
  • Varga B.'s Avatar Topic Author
  • Offline
  • Posts: 10
Thank you!

So I making backup:

xe pool-dump-database file-name=all-dom0
iscsi-cfg backup

So after I lost all of data:

1. installing xcp-ng again
2. installing ha-lizard again?
3.

xe pool-restore-database file-name=all-dom0 dry-run=true

4.

iscsi-cfg restore


5. done?

Please Log in or Create an account to join the conversation.

  • Page:
  • 1