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 previous 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.
 
Read Message
Read Message
Read Message
Read Message
Read Message
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 Jul 29 18:19:28 GMT 2024

Total time taken to generate the page: 0.02727 seconds