OpenVZ Forum

Home » General » Support » OpenVZ Backup
OpenVZ Backup [message #51459] Sun, 15 June 2014 13:21 Go to next message
meganuke is currently offline  meganuke
Messages: 1
Registered: June 2014
Location: Moscow
Junior Member
From: *
Hello i read scripts on

vzctl snapshot $CTID --id $ID --skip-suspend --skip-config

# Perform a backup using your favorite backup tool
# (cp is just an example)
cp $VE_PRIVATE/root.hdd/* $BACKUPPATH/

# Delete (merge) the snapshot
vzctl snapshot-delete $CTID --id $ID

Why merge run after cp? Also, i can copy only root.hdd, without snapshot if snapshot already merged and deleted?
Re: OpenVZ Backup [message #51478 is a reply to message #51459] Tue, 24 June 2014 16:56 Go to previous message
devonblzx is currently offline  devonblzx
Messages: 127
Registered: December 2006
Senior Member
From: *
You don't want to keep a snapshot running after the copy because it creates a large amount of overhead for the filesystem.

Merging it basically closes out the snapshot. You merge all the changes made while the snapshot was open.
ByteOnSite President
Previous Topic: How to create multiple venet interfaces on HN?
Next Topic: How to escape the no_loop_device flaw ?
Goto Forum:

Current Time: Wed Dec 12 01:54:09 GMT 2018