OpenVZ Forum


Home » General » Support » vzdump exclude folders
vzdump exclude folders [message #28055] Fri, 07 March 2008 10:00 Go to next message
beyondx is currently offline  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 #28059 is a reply to message #28055] Fri, 07 March 2008 11:27 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

By reading http://wiki.openvz.org/Backup_of_a_running_VE_with_vzdump I was not able to find any arguments telling to excude a directory from backup. So I guess you have to contact vzdump guys (Proxmox) asking for that.

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: vzdump exclude folders [message #28062 is a reply to message #28059] Fri, 07 March 2008 12:16 Go to previous messageGo to next message
ugob is currently offline  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

Re: vzdump exclude folders [message #28071 is a reply to message #28055] Fri, 07 March 2008 13:20 Go to previous messageGo to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
Have you tried

/var/spool/clientmqueue/

or

/var/spool/clientmqueue/.*

?


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
Re: vzdump exclude folders [message #28079 is a reply to message #28071] Fri, 07 March 2008 15:12 Go to previous messageGo to next message
beyondx is currently offline  beyondx
Messages: 21
Registered: October 2007
Junior Member
hi ugob,

thx for the hint!i will try your tips asap. i hope this will solve the problem....
I´ll post the results.

Regards

norman
Re: vzdump exclude folders [message #28083 is a reply to message #28055] Fri, 07 March 2008 18:30 Go to previous messageGo to next message
beyondx is currently offline  beyondx
Messages: 21
Registered: October 2007
Junior Member
Unfortunately both ways dont work. The first one seems to have no effect and /.* is not accepted :-/
Does anyone have another hint?

Regards

Norman
Re: vzdump exclude folders [message #28097 is a reply to message #28083] Sat, 08 March 2008 11:38 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Have you tried this:

CTID = VEID

# vzdump <CTID> --execlude '/var/spool/clientmqueue/'

Re: vzdump exclude folders [message #28198 is a reply to message #28097] Tue, 11 March 2008 12:37 Go to previous messageGo to next message
beyondx is currently offline  beyondx
Messages: 21
Registered: October 2007
Junior Member
Thx for your reply but unfortunately your help didnt work either. It is getting weird or I´m just too dumb.

I need to exclude anything within /var/spool/clientmqeue (which can be folders or files). It cannot be that difficult, can it...

Regards

Norman
Re: vzdump exclude folders [message #28334 is a reply to message #28055] Fri, 14 March 2008 09:17 Go to previous messageGo to next message
lizard is currently offline  lizard
Messages: 11
Registered: October 2007
Location: russia
Junior Member
Try this --exclude-path '/var/spool/clientmqueue/.+' it's fine working for me
*SOLVED* Re: vzdump exclude folders [message #28405 is a reply to message #28055] Mon, 17 March 2008 11:10 Go to previous message
beyondx is currently offline  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
Previous Topic: Vztop shows a high iowait CPU % periodically, is it reasonable?
Next Topic: ( openvz 2.6.18-53.1.4.el5.028stab053.4 + intel e1000 ) not sending arp notifies
Goto Forum:
  


Current Time: Wed Jul 31 20:26:32 GMT 2024

Total time taken to generate the page: 0.02747 seconds