OpenVZ Forum


Home » General » Support » vzdump -exclude-path (path is excluded in the final archive, but not in the intermediate rsync)
vzdump -exclude-path [message #50604] Fri, 20 September 2013 11:16 Go to next message
votsalo is currently offline  votsalo
Messages: 26
Registered: December 2011
Location: Greece
Junior Member
When I used the -exclude-path option with vzdump to exclude a directory that uses a lot of space, I noticed that the excluded directory is copied in the intermediate .tmp dir where vzdump does a temporary rsync and is only dropped later when creating the archive. So it ends up copying a lot of unwanted files, which takes time and space. In my case, the files I wanted to exclude are in the order of 100GB while the final archive is only 300MB.

This is what I tried to use: vzdump -exclude-path '/var/opt/.+'

As a workaround, I could stop the container and do the tar myself.
Versions [message #50607 is a reply to message #50604] Sat, 21 September 2013 09:30 Go to previous messageGo to next message
votsalo is currently offline  votsalo
Messages: 26
Registered: December 2011
Location: Greece
Junior Member
I used these tool versions:
vzctl version 4.0-4.git.162dded
Kernel 2.6.32-22-pve
Re: vzdump -exclude-path [message #50609 is a reply to message #50604] Sat, 21 September 2013 14:45 Go to previous messageGo to next message
Paparaciz
Messages: 302
Registered: August 2009
Senior Member
vzdump is a product of proxmox, so better look for their support
Re: vzdump -exclude-path [message #50611 is a reply to message #50609] Sat, 21 September 2013 16:12 Go to previous messageGo to next message
votsalo is currently offline  votsalo
Messages: 26
Registered: December 2011
Location: Greece
Junior Member
Thank you. I had no idea.
Re: vzdump -exclude-path [message #50613 is a reply to message #50609] Sat, 21 September 2013 16:44 Go to previous message
votsalo is currently offline  votsalo
Messages: 26
Registered: December 2011
Location: Greece
Junior Member
I'm just making a note that vzdump is described in the openvz wiki and is available for download from openvz.org:
http://wiki.openvz.org/Backup_of_a_running_container_with_vz dump
http://download.openvz.org/contrib/utils/vzdump/
Previous Topic: What happen when i assign more memory than is available?
Next Topic: template not found, but i can create container
Goto Forum:
  


Current Time: Mon May 06 03:22:19 GMT 2024

Total time taken to generate the page: 0.01792 seconds