Libro sobre Proxmox maestria
A Virtual Machine for a Virtual World
# example: copy resulting log file to another host using scp if ($phase eq 'log-end') {
#system ("scp $logfile backup-host: /backup-dir") == 0 || # die "copy log file to backup-host failed";
} else { die "got unknown phase '$phase'";
exit (0);
You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub. com/support and register to have the files e-mailed directly to you.
To ignore certain folders from backing up, use the exclude-path option. All paths must be entered on one line without breaks. Please keep in mind that this option is only for OpenVZ containers:
The previous example will exclude all the files and directories under /log and / var/cache. To manually exclude other directories from being backed up, simply use the following format:
exclude-path: "/<directory_tree>/.+" 3