Hi,

how and which folders/files do You exclude from OpenVZ vzdump backups?

Examples from proxmox staff

Recursivelly exclude tar.gz abd .zip file types
Code:
--exclude-path '.+\.tar\.gz' --exclude-path '.+\.zip'
I have these exclusions in my vzdump bash script:
Code:
--exclude-path '.+/log/messages.+' --exclude-path '.+/log/exim.+' --exclude-path '.+/log/maillog.+' --exclude-path '.+/log/secure.+' --exclude-path '.+/log/cron.+' --exclude-path '.+/bak/.+' --exclude-path '/tmp/.+' --exclude-path '/var/tmp/.+' --exclude-path '/var/run/.+pid'
one per line:
Code:
.+/log/messages.+
.+/log/exim.+
.+/log/maillog.+
.+/log/secure.+
.+/log/cron.+
.+/bak/.+
/tmp/.+
/var/tmp/.+
/var/run/.+pid
when examined VMs /var/log, the biggest files was these with around 15+ Mb..

Code:
maillog.*
maillog
secure
secure.*
secure-*
btmp
messages-*
xconsole.log
question is if it is safe to exclude these so everything works properly once VM is restored by "vzrestore"