![Forrest logo](/images/logo.png)
On this page you find all important commands for the CLI tool vzdump. If the
command you are looking for is missing please ask our AI.
vzdump
Vzdump is a command line tool used in Linux environments to perform live virtual machine backups and restores in OpenVZ virtualization platforms. It is specifically designed for OpenVZ containers and allows users to easily create backups of their virtual machines.
- Vzdump enables users to take full or incremental backups of running containers without significantly affecting their performance.
- It supports various backup formats, such as compressed files, raw disk images, or structured backup into a tar archive.
- The tool utilizes the OpenVZ checkpointing feature to create consistent backups by briefly suspending the container during the backup process.
- Vzdump provides options to specify the backup directory, compression level, backup mode, and various other settings to customize the backup process according to specific requirements.
- It can also exclude certain files or directories from the backup using regular expressions or exclusion lists.
- The backup files generated by vzdump can be stored locally or transferred to remote servers using secure protocols like SSH or SCP.
- It supports automatic backup rotation where old backups are automatically cleaned up based on the specified retention period.
- Vzdump allows for the restoration of backups to the same or different OpenVZ nodes, providing flexibility in disaster recovery scenarios.
- The tool provides a comprehensive command line interface with multiple options and parameters, making it highly flexible for scripting or automation purposes.
- Vzdump is widely used in production environments to ensure data availability and security by creating regular backups of critical virtual machines.
List of commands for vzdump:
-
vzdump:tldr:0bd80 vzdump: Dump a guest virtual machine into the default dump directory (usually `/var/lib/vz/dump/`), excluding snapshots.$ vzdump ${vm_id}try on your machineexplain this command
-
vzdump:tldr:7ef2a vzdump: Back up all guest systems and send an notification email to the root and admin users.$ vzdump --all --mode ${suspend} --mailto ${root} --mailto ${admin}try on your machineexplain this command
-
vzdump:tldr:895c2 vzdump: Back up all guest virtual machines excluding the IDs 101 and 102.$ vzdump --mode ${suspend} --exclude ${101, 102}try on your machineexplain this command
-
vzdump:tldr:d5405 vzdump: Dump a guest virtual machine using a specific mode.$ vzdump ${vm_id} --mode ${select}try on your machineexplain this command
-
vzdump:tldr:f65de vzdump: Use snapshot mode (no downtime required) and a non-default dump directory.$ vzdump ${vm_id} --dumpdir ${path-to-directory} --mode ${snapshot}try on your machineexplain this command