View previous topic :: View next topic |
Author |
Message |
giulianoz Tux's lil' helper

Joined: 11 Oct 2004 Posts: 96
|
Posted: Wed Dec 14, 2005 1:32 pm Post subject: backup solutions ? |
|
|
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 |
|
 |
PaulBredbury Watchman


Joined: 14 Jul 2005 Posts: 7310
|
Posted: Wed Dec 14, 2005 2:24 pm Post subject: |
|
|
It's easy with postgresql, anyway:
Code: | su - postgres -c "pg_dumpall | bzip2 > /home/postgres/backup/pgdumpall.bz2" |
|
|
Back to top |
|
 |
madchaz l33t


Joined: 01 Jul 2003 Posts: 995 Location: Quebec, Canada
|
Posted: Wed Dec 14, 2005 3:10 pm Post subject: |
|
|
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 |
|
 |
giulianoz Tux's lil' helper

Joined: 11 Oct 2004 Posts: 96
|
Posted: Thu Dec 15, 2005 8:45 am Post subject: |
|
|
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 |
|
 |
|