LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 09-01-2008, 11:11 AM   #1
Rauldinho
LQ Newbie
 
Registered: Nov 2004
Posts: 20

Rep: Reputation: 0
What should i backup on these servers?


Hi, i have the task of making backups from different servers and i wanted to know from anyones experience what files/folders should i backup? The server i'm talking about include:
- Asterisk Server
- Web Server (Apache, MySQL, PHP)
- Mail (Postfix)
- And a Firewall.

What should i copy to my backup server from each one of the servers above? Including the configurations files from linux that may be important. Thanks for any answer i may get!
 
Old 09-01-2008, 12:40 PM   #2
checkmate3001
Member
 
Registered: Sep 2007
Location: Folsom, California
Distribution: Debian 4.0 (Etch), Debian 5.0 (Lenny), Ubuntu 8.04
Posts: 297

Rep: Reputation: 32
I would definitely backup the data (ie: the website that apache is serving, the mail that postfix is accepting, etc.)
apache may be located /var/www or /srv/www
postfix mail may be located /var/mail or something similar.
I don't know where mysql or php stuff may be located.
Firewall likely will be a script in /etc/rc(something)

backup the /etc/apache(whatever)
backup the /etc/postfix/(whatever)
and anything else you can find for mysql and php.

That's all I can recommend. Have a good plan. Test it.
 
Old 09-01-2008, 01:36 PM   #3
brianmcgee
Member
 
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 38
Bare in mind that if you backup single directories you might up finding out that the very file you need to restore is excluded from your backup.

If you have the space and possibility, backup the whole server.
 
Old 09-02-2008, 09:45 AM   #4
Rauldinho
LQ Newbie
 
Registered: Nov 2004
Posts: 20

Original Poster
Rep: Reputation: 0
thanks for your answer. I've been reading a lot about backup in linux and i found about bacula and i'm thinking about implementing this one. Am i going in the right direction with this software? I dont have the amount of space to backup the whole server but i would like to know how can i do that? what software should i use? Thanks for guiding me on this one!
 
Old 09-02-2008, 07:33 PM   #5
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995
You could also look at amanda.
For MySQL I'd look at mysqldump, to ensure you get a consistent dataset.
 
Old 09-02-2008, 07:53 PM   #6
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,189

Rep: Reputation: 105Reputation: 105
Actually, for MySQL, you want Zmanda Recovery Manager for MySQL. There was a review of it in the recent edition of Linux Journal, and you can find a link about 2/3 of the way down on this page of links: http://www.linuxquestions.org/bookmarks/tags/backup.
 
Old 09-02-2008, 08:46 PM   #7
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
What filesystem do you use. On a recent twit FLOSS episode the lead programmer for drizzle recommended performing a flush and then an LVM snapshot or ZFS snapshot for live backups. That way you perform the same procedure to backup the database as you do for the application server. The XFS file system can perform a backup with xfsdump.
 
Old 09-03-2008, 06:48 AM   #8
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,189

Rep: Reputation: 105Reputation: 105
Snapshots are not a cure-all for database backups. I use fssnap on Solaris 9 with ufsdump in a wrapper I wrote that is called by Amanda. This is a major improvement on simply having Amanda call ufsdump. However, you still want to use proper procedures for databases. Zmanda Recovery Manager for MySQL does that. It manages both full and incremental backups to disk using appropriate procedures - http://www.zmanda.com/backup-mysql.html. Then, if you use Amanda for your general backups, it can process those out to tape.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Doing backup of servers scripts using tar/gzip/scp/rm Swakoo Linux - General 4 12-05-2006 02:09 AM
Shell Script: Cross-platform backup for distributed servers tedcox Programming 4 09-05-2006 07:36 PM
Backup / Failover Solution with Colocated Servers benhalliday Linux - Software 1 05-25-2006 09:28 AM
Backup Solutions for Linux Servers lionking_x Linux - General 8 03-27-2006 12:50 PM
Backup mail from IMAP servers marsonist Linux - Networking 2 08-13-2003 08:17 AM


All times are GMT -5. The time now is 12:46 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration