vzdump exclude file types?

postcd

Renowned Member
Sep 16, 2013
41
0
71
Hello,

vzdump manual shows one can use regex to exclude directories/files.

EXCLUSIONS (OpenVZ only)
vzdump skips the following files wit option --stdexcludes

/var/log/.+
/tmp/.+
/var/tmp/.+
/var/run/.+pid

You can manually specify exclude paths, for example:

# vzdump 777 --exclude-path C</tmp/.+> --exclude-path C</var/tmp/.+>

(only excludes tmp directories)

Configuration files are also stored inside the backup archive (/etc/vzdump), and will be correctly restored.

But how the command should look like when i want to exclude lets say .tar.gz and .zip files in all directories of VMs?
(I want to do frequent backups without these files and less often backups including everything)
 
Is it not speed decrease problem when i add like 20 exclude switches to the vzdump ? thx