vzdump exclude file types?

postcd

Member
Sep 16, 2013
40
0
6
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!