Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
backup solutions ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
giulianoz
Tux's lil' helper
Tux's lil' helper


Joined: 11 Oct 2004
Posts: 96

PostPosted: Wed Dec 14, 2005 1:32 pm    Post subject: backup solutions ? Reply with quote

Hi,
I have 7 gentoo servers (3 pairs in HA/load balancing and 1 as a single server). Each server runs mysql baserd services (2 runs radius and the others are apache+php+mysql). I need to find a backup solution that can backup my data (mainly /var/lib/mysql /var/www and db dumps) without the need to stop the services and/or locking the databases. Is it possible or should I simply stop the DB on the server I want to backup (high availability helps) and accepf lower performances for the needed backup period ?

thanks

giuliano
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Wed Dec 14, 2005 2:24 pm    Post subject: Reply with quote

It's easy with postgresql, anyway:
Code:
su - postgres -c "pg_dumpall | bzip2 > /home/postgres/backup/pgdumpall.bz2"
Back to top
View user's profile Send private message
madchaz
l33t
l33t


Joined: 01 Jul 2003
Posts: 995
Location: Quebec, Canada

PostPosted: Wed Dec 14, 2005 3:10 pm    Post subject: Reply with quote

The best would probably be to do a mysql dump and do a backup of that. This way, you don't have to take the server offline.

Doing a backup of the data files directly tends to give unpredictable results with mysql, in my experience.

I would sujest you use the crontab to make the mysql dump and then run your standard backup procedure on the files.
_________________
Someone asked me once if I suffered from mental illness. I told him I enjoyed every second of it.
Back to top
View user's profile Send private message
giulianoz
Tux's lil' helper
Tux's lil' helper


Joined: 11 Oct 2004
Posts: 96

PostPosted: Thu Dec 15, 2005 8:45 am    Post subject: Reply with quote

thanks for the tips. Unfortunately I can't switch to pgsql at this time.
I'll try to have a one-way replicated mysql server which I can take down to backup everything (actually importing the whole db from a dump takes about 90 minutes and this take too long for my boss...)

giuliano
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum