Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Ploop/Backup

181 bytes added, 16:46, 6 September 2015
no edit summary
|-
|| Compatible with pre-ploop backups
| {{Yes-No}}{{H:title|It's always possible to create a new, same-size ploop device and then restore the files into the mounted ploop partition|<sup>*</sup>}} || {{Yes}}
|-
|| Restore individual files
# Known snapshot ID
ID=$(uuidgen)
VE_PRIVATE=$(VEID=vzlist -H -o private $CTID; source /etc/vz/vz.conf; source /etc/vz/conf/$CTID.conf; echo $VE_PRIVATE)
# Take a snapshot without suspending a CT and saving its config
# Known snapshot ID
ID=$(uuidgen)
VE_PRIVATE=$(VEID=vzlist -H -o private $CTID; source /etc/vz/vz.conf; source /etc/vz/conf/$CTID.conf; echo $VE_PRIVATE)
# Take a snapshot without suspending a CT and saving its config
# Perform a backup using your favorite backup tool
# (tar is just an example)
tar cf backup.tar $MNTDIR # tar with compression examples, see man page of tar for more options# tar cfJ backup.tar.xz $MNTDIR# tar cfz backup.tar.gz $MNTDIR
# Unmount the snapshot
== See also ==
* [[Ploop]]
* [[Man/vzctl.8#Snapshotting|vzctl(8), section Snapshotting]].
[[Category:ploopStorage]][[Category:HOWTO]]
14
edits