[pve-devel] [PATCH manager 2/2] vzdump: make exclude-path from config file work again

Wolfgang Bumiller w.bumiller at proxmox.com
Thu Mar 3 16:07:41 CET 2016


> On March 3, 2016 at 3:58 PM Jean-Francois Dagenais <jeff.dagenais at gmail.com> wrote:
> 
> 
> While we are on the subject of vzdump. One thing that fails when restoring dumps
> is the lack of the original directory structure. Here's an example:
> 
> /var/log/?* is excluded, however, there are subdirectories in there which were
> carefully created by a package managers (APT or RPM) at package install time
> which ensures the corresponding software, perhaps running under a non-root user,
> can write to said directory. Excluding the whole /var/log/* means these directories
> is not present at system restore, and the software cannot re-create it since
> it's under-priviledged to do so as /var/log is root:root
> 
> There should be a way for files to be discarded but the dir structure to be
> kept.  I know tar has the --exclude-tag-under for example, and google gives
> funky joined tar and "find -type d" invocation to deal with this... any
> thoughts?

Definitely sounds like a good idea. The hard part for us, usually, is finding
something that works the same in all backup modes (read: rsync vs tar).




More information about the pve-devel mailing list