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

Jean-Francois Dagenais jeff.dagenais at gmail.com
Thu Mar 3 15:58:38 CET 2016


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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 236 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20160303/6ba7d09f/attachment.sig>


More information about the pve-devel mailing list