Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 09-01-2008, 12:11 PM   #1
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, 01:40 PM   #2
Registered: Sep 2007
Location: Folsom, California
Distribution: Debian 4.0 (Etch), Debian 5.0 (Lenny), Ubuntu 8.04
Posts: 303

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, 02:36 PM   #3
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 39
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, 10:45 AM   #4
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, 08:33 PM   #5
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

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

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:
Old 09-02-2008, 09:46 PM   #7
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
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, 07:48 AM   #8
Senior Member
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,194

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 - Then, if you use Amanda for your general backups, it can process those out to tape.


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

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 03:09 AM
Shell Script: Cross-platform backup for distributed servers tedcox Programming 4 09-05-2006 08:36 PM
Backup / Failover Solution with Colocated Servers benhalliday Linux - Software 1 05-25-2006 10:28 AM
Backup Solutions for Linux Servers lionking_x Linux - General 8 03-27-2006 01:50 PM
Backup mail from IMAP servers marsonist Linux - Networking 2 08-13-2003 09:17 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:40 AM.

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