vzdump exclude folders [message #28055] |
Fri, 07 March 2008 10:00 |
beyondx
Messages: 21 Registered: October 2007
|
Junior Member |
|
|
Hi everyone,
I know that the following question is rather a linux-noob-one, but I just cant figure it out.
In fact I´m using vzdump to backup running VEs, which works without any problems. However I´m trying to exclude certain paths including their subdirectories. How can I exclude everything within /var/spool/clientmqueue?
I tried /var/spool/clientmqueue/.+ but that doesnt work.
Any help would be appreciated. I already tried myself on certain pages dealing with regex but still fail.
Regards
Norman
|
|
|
|
Re: vzdump exclude folders [message #28062 is a reply to message #28059] |
Fri, 07 March 2008 12:16 |
ugob
Messages: 271 Registered: March 2007
|
Senior Member |
|
|
Kir,
It is a new feature.
usage: /usr/bin/vzdump OPTIONS [--all | VPSID]
--exclude VPSID exclude VPSID (assumes --all)
--exclude-path REGEX exclude certain files/directories
--compress compress dump file (gzip)
--dumpdir DIR store resulting files in DIR
--xdelta create differential backup using xdelta
--mailto EMAIL send notification mail to EMAIL.
--stop stop/start VPS if running
--suspend suspend/resume VPS when running
--snapshot use LVM snapshot when running
--restore FILENAME restore FILENAME
Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf
Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
[Updated on: Fri, 07 March 2008 12:17] Report message to a moderator
|
|
|
|
|
|
|
|
|
*SOLVED* Re: vzdump exclude folders [message #28405 is a reply to message #28055] |
Mon, 17 March 2008 11:10 |
beyondx
Messages: 21 Registered: October 2007
|
Junior Member |
|
|
Sorry...Í´m just too dump.
The /var/spool/mqueue/.+ syntax worked. I was just confused, because vzdump was complaining about vanishing files within the folder (however, they were excluded)....everything´s fine now.
Regards,
Norman
|
|
|