LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-31-2007, 10:36 AM   #1
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 351

Rep: Reputation: 31
Backup server


hi all

i am searching a way to backup a server (running apache2 & ssh only). i would like something better from a simple tar backup... I would like to backup the whole hdd in a way so if it crash , i get a new hard disk, i copy the image to the hard disk it i get the server running back (theoritically) with the minimum effort!

Can i do it using dd? I copy the hdd but is possible to copy later the image to the new (probably) bigger hard disk and then resize the partitions?

Is possible to do something like this?
Can i achieve this somehow?

Regards
Thanks
 
Old 03-31-2007, 12:50 PM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
What's wrong with tar? That does exactly what you describe and is much better than dd.
You could also set up a rsync server.
 
Old 04-02-2007, 11:11 AM   #3
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 351

Original Poster
Rep: Reputation: 31
Yes, but if my server crash how i will restore the files?
If i insert the hdd to an other linux, untar the files to the other hard disk, repair the mbr will work?
And how i will manage partitions??
 
Old 04-02-2007, 12:34 PM   #4
tataiermail
Member
 
Registered: Apr 2006
Location: calcutta, IND
Distribution: RHEL AS 4, openSUSE 10.2
Posts: 48

Rep: Reputation: 15
tar can do

take "tar" backup partitionwise.
ie. check ur /etc/fstab and find out which partitions are mounted on which directories. then take "tar" backup of all the directories seperately. then decide what is your backup media. on that media copy the tar archives.
create a copy of your partition table:

touch part.back
fdisk -l > part.back

if ur server crashes, then through a bootable floppy or perhaps
"knoppix cd" boot onto the new server.
create the same partition table by "fdisk".
then just restore the tar archives one by one onto the right partition.
if you have larger hdd, no prob. just make sure every partition is larger than than the old setup.

done
 
  


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
backup server ; network file system / ftp-server ? markus1982 Linux - Security 5 06-06-2007 05:15 PM
LXer: Backup MySQL databases, web server files to a FTP server automatically LXer Syndicated Linux News 0 08-11-2006 09:54 PM
Mounting windows server onto SuSE backup server murungu Linux - General 1 09-20-2004 03:01 PM
backup server amadkow Linux - Networking 2 07-01-2004 06:38 PM
How Can I Backup My Server? John_Saunders Linux - General 1 10-27-2002 01:18 PM

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

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

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