mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-27 21:53:38 +00:00
Update cheatsheets
This commit is contained in:
33
tldr/linux/vzdump
Normal file
33
tldr/linux/vzdump
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# vzdump
|
||||
|
||||
> Backup Utility for virtual machines and containers.
|
||||
> More information: <https://pve.proxmox.com/pve-docs/vzdump.1.html>.
|
||||
|
||||
- Dump a guest virtual machine into the default dump directory (usually `/var/lib/vz/dump/`), excluding snapshots:
|
||||
|
||||
`vzdump {{vm_id}}`
|
||||
|
||||
- Back up the guest virtual machines with the IDs 101, 102, and 103:
|
||||
|
||||
`vzdump {{101 102 103}}`
|
||||
|
||||
- Dump a guest virtual machine using a specific mode:
|
||||
|
||||
`vzdump {{vm_id}} --mode {{suspend|snapshot}}`
|
||||
|
||||
- Back up all guest systems and send an notification email to the root and admin users:
|
||||
|
||||
`vzdump --all --mode {{suspend}} --mailto {{root}} --mailto {{admin}}`
|
||||
|
||||
- Use snapshot mode (no downtime required) and a non-default dump directory:
|
||||
|
||||
`vzdump {{vm_id}} --dumpdir {{path/to/directory}} --mode {{snapshot}}`
|
||||
|
||||
- Back up all guest virtual machines excluding the IDs 101 and 102:
|
||||
|
||||
`vzdump --mode {{suspend}} --exclude {{101, 102}}`
|
||||
Reference in New Issue
Block a user