Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 03-31-2007, 11:36 AM   #1
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 345

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?

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

Rep: Reputation: 46
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, 12:11 PM   #3
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 345

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, 01:34 PM   #4
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.



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

All times are GMT -5. The time now is 04:50 PM.

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