Files
cheatsheet-tldr/tldr/linux/vgcfgrestore
2025-11-16 00:22:19 +00:00

26 lines
661 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# vgcfgrestore
> Restore volume group configuration (not user data) from a text back up file produced by `vgcfgbackup`.
> More information: <https://manned.org/vgcfgrestore>.
- Restore VG metadata from last backup.:
`sudo vgcfgrestore {{vg_name}}`
- Restore VG metadata from specified backup-file:
`sudo vgcfgrestore {{[-f|--file]}} {{path/to/file}} {{vg_name}}`
- List all VG metadata backups:
`sudo vgcfgrestore {{[-l|--list]}} {{vg_name}}`
- List one VG metadata backup file:
`sudo vgcfgrestore {{[-l|--list]}} {{[-f|--file]}} {{path/to/file}} {{vg_name}}`