Editing
Msg11825.html
From Linix VServer
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
----- [<nowiki/>[[msg11824.html|Date Prev]]][<nowiki/>[[msg11826.html|Date Next]]][<nowiki/>[[msg11824.html|Thread Prev]]][<nowiki/>[[msg11826.html|Thread Next]]][<nowiki/>[[index.html#11825|Date Index]]][<nowiki/>[[threads.html#11825|Thread Index]]] <span id="re-vserver-recommended-way-to-backup-vserver-guests-with-nightly-cron-job"></span> = Re: [Vserver] recommended way to backup vserver guests with nightly cron job? = ----- * '''From:''' GarconDuMonde * '''Date:''' Tue, 20 Dec 2005 13:59:03 +0100 (CET) ----- <pre>-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 hi, Gerhard Hofmann wrote: > I'm a newbie to vserver and I wonder how to backup my vserver guests > with a cron job run by the vserver host. i'm a newbie too, don't worry ;-) > I think it should be something like that: > vserver myvserver stop > ...compress /etc/vserver to a tgz file and save on external storage... > vserver myvserver start > > Have I forgotten something important here? > > Myvserver will run mysql and apache (TYPO3 content management system), > so I think it won't hurt to run a mysqldump before shutting down and > backing up myvserver. > > What is the best way to invoke the mysqldump command within myvserver? A > separate cron job within the guest? the best solution i have found is backupninja [1]: Backupninja allows you to coordinate system backup by dropping a few simple configuration files into /etc/backup.d/. Most programs you might use for making backups don't have their own configuration file format. Backupninja provides a centralized way to configure and schedule many different backup utilities. furthermore, the current backupninja version, 0.9.1 (soon to be 0.9.2) is fully configured to work with vservers. tbh, i've had a little bit of difficulty with some of it - particularly the duplicity handler, but by sticking to some of the basic scripts, i am able to get it to work well: success -- /etc/backup.d/10.sys success -- /etc/backup.d/20.mysql success -- /etc/backup.d/90.rdiff to configure the mysql backups, i had to get a bit of additional advice: < micah> gdm: you can use the poorly documented mysql vserver capability < micah> set this in /etc/backupninja.conf: < micah> vservers = yes < micah> then set your username/passwd, databases = all, hotcopy/sqldump,compress stuff < micah> in the mysql file in /etc/backup.d < micah> and also set: < micah> vsname = mysql < micah> to be the name of your vserver that has mysql in it if you have further questions, please feel free to write. if people are interested, i'll see if i can get some of my particular configurations up on the wiki or something. [1] http://dev.riseup.net/backupninja - -- love and solidarity, --gdm http://docs.indymedia.org/view/Main/GarconDuMonde i have a NEW key: gpg --keyserver pgp.mit.edu --recv-keys 594B97C2 Key fingerprint = 7B70 F22D F275 D111 3A04 F9EE 0E25 4944 594B 97C2 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iD8DBQFDqAASDiVJRFlLl8IRAuK5AJ9CaY4IcNkBxWLBMXM53ll0S2ejswCfX/DF p0RNIOUBBjsWN8tl4s3NQwQ= =+uev -----END PGP SIGNATURE----- </pre> ----- * '''References''': ** '''[[msg11819.html|[Vserver] recommended way to backup vserver guests with nightly cron job?]]''' *** ''From:'' Gerhard Hofmann * Prev by Date: '''[[msg11824.html|Re: [Vserver] recommended way to backup vserver guests with nightly cron job?]]''' * Next by Date: '''[[msg11826.html|Re: [Vserver] recommended way to backup vserver guests with nightly cron job?]]''' * Previous by thread: '''[[msg11824.html|Re: [Vserver] recommended way to backup vserver guests with nightly cron job?]]''' * Next by thread: '''[[msg11826.html|Re: [Vserver] recommended way to backup vserver guests with nightly cron job?]]''' * Index(es): ** [[index.html#11825|'''Date''']] ** [[threads.html#11825|'''Thread''']]
Summary:
Please note that all contributions to Linix VServer may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Linix VServer:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
About
Overview
Paper
News
Developers
Donations
Search
Getting Started
Downloads
FAQs
Documentation
Support
Participate
How to participate
Report a Bug
Communicate
Teams/Projects
Hall of Fame
Resources
Archives
Recent Wiki Changes
Pastebin
Related Projects
VServer Hosting
Happy VServer Users
Tools
What links here
Related changes
Special pages
Page information