LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 08-22-2008, 07:09 PM   #1
arya6000
Member
 
Registered: Sep 2005
Posts: 30

Rep: Reputation: 15
Best way of backing up a webserver?


Hello

I would like to backup all of my webserver files at least daily, the site also uses mysql database so that also needs backups.

For Mysql I figured a script that extracts the database and ftp it to another server. Is that ok or is there a better way?

But I'm not sure what the best way would be for the files since they are 10GB and its growing at a fast rate.

can you tell me a good backup method?

Thank You
 
Old 08-22-2008, 09:37 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Copying the data to another server is a good start, as it will give you redundancy. But ideally you want to backup to something removable, like a tape, DVD, or Blu-Ray.

The advantage with removable media is that you can have a different media for each day (assuming you are using something that can be rewritten to multiple times, like tape) and can store them off-site. Off-site storage is especially important in the event of a disaster like a fire or flood.
 
Old 08-22-2008, 09:49 PM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Look into something like rsync that will copy changes rather than the whole file.
 
Old 08-23-2008, 12:43 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
10GB or more, you may want to consider something like Bacula or Amanda to automate the backup process instead of relying on rsync and home brewed scripts.

I use bacula myself and I make daily dumps of my mysql databases that I drop into a directory that bacula picks up when it runs.

There are many different approaches you can take, the best would be the approach that does a full backup, incrementals inbetween and possibly diff's, keeping a month retention at minimum, etc.

Tell us your requirements and it might help us better understand how to approach or give advice.
 
Old 08-25-2008, 07:18 AM   #5
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
If you are doing dynamic web sites with mysql, then having a good mechanism for backing up mysql will be important. Check out Zmanda Recovery Manager for MySQL. There was a detailed review in the latest Linux Journal (September 2008 issue). You can find links here: http://www.linuxquestions.org/bookmarks/tags/backup -- the ZRM link is about 2/3 of the way down the first page of links on that. It will do fulls and incrementals, and you can integrate it with whatever general backup tool you want to put the backups on tape or other media.

You will also find plenty of links there for Amanda. Lots of options in how you configure. One interesting option for off site now is that Amanda has a backend for Amazon S3.
 
  


Reply



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
backing up Ron Petch Linux - Newbie 2 06-17-2008 03:55 AM
Backing up my OS dougnc Linux - Software 4 07-02-2007 10:17 AM
backing up koyi Linux From Scratch 2 10-09-2004 10:54 AM
Can't see WebServer from outside... Can see WebServer locally as http://localhost friddick Linux - Networking 13 08-19-2003 06:27 PM
Backing up Cichlid Linux - General 1 12-16-2002 10:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:56 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration