vzdump -exclude-path [message #50604] |
Fri, 20 September 2013 11:16 |
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.
|
|
|
|
|
|
|