LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Backup whole Redhat system (https://www.linuxquestions.org/questions/linux-newbie-8/backup-whole-redhat-system-474331/)

billamn 08-16-2006 04:29 AM

Backup whole Redhat system
 
I want to help a friend who has a small network with some version of Redhat running on a main computer as the internet gateway. He knows virtually nothing about linux (I have some knowledge) so before I touch anything, I want to protect myself by backing up everything on the Redhat server.

I intend to make rescue disks... then login as root and type "tar -cfv backup.tar /" then move this file to another hard disk for storage, also burn it to CDs or DVD.

Is this the right way to go about it?

Thanks for any help and advice.

xgreen 08-16-2006 04:51 AM

i think that is possible. alternatively you can,

1. put second harddisk on the server, boot using rescue disk or any linux cd & copy using dd command (dd if=/dev/xxx of=/dev/yyy) - I used to use this method

2. Use ghost for linux to copy hard disk image to another harddisk

3. Norton Ghost :-)

ethics 08-16-2006 05:17 AM

If you use tar then you will need to split it to fit on multiple CDs/DVDs i would also suggest gunzipping it aswell, not sure how much space it would save but the more the better right?

billamn 08-16-2006 05:19 AM

Quote:

Originally Posted by xgreen
i think that is possible. alternatively you can,

1. put second harddisk on the server, boot using rescue disk or any linux cd & copy using dd command (dd if=/dev/xxx of=/dev/yyy) - I used to use this method

2. Use ghost for linux to copy hard disk image to another harddisk

3. Norton Ghost :-)

I'm hesitant to do anything invasive like shut down the linux box and add another hard disk to it.

So the Norton Ghost option looks appealing assuming it's done over the network from a Windows computer where the image would be stored. Is it easy to do?

billamn 08-16-2006 06:29 AM

Quote:

Originally Posted by ethics
If you use tar then you will need to split it to fit on multiple CDs/DVDs i would also suggest gunzipping it aswell, not sure how much space it would save but the more the better right?

Say the total size to tar and split is 1Gig, then there would be 10x 100Mb files. Is it possible for tar to prompt me with a Continue(y/n) before each 100MB file is to be created? I'm afraid to overrun the hard disk if it is small or almost full.

xgreen 08-16-2006 06:36 AM

just curious, what exactly you want to do with that server? you may backup first the files that you are going to touch...

ethics 08-16-2006 06:42 AM

Quote:

Originally Posted by billamn
Say the total size to tar and split is 1Gig, then there would be 10x 100Mb files. Is it possible for tar to prompt me with a Continue(y/n) before each 100MB file is to be created? I'm afraid to overrun the hard disk if it is small or almost full.

Code:

man ta
gives you its manual page, you can look up the options there. As for filling the harddrive...

you're backing up the whole of /, so how big is that? you then need a partition (you can use / since you'll be copying the files first right?)/other drive/something else that is big enough
Code:

df -h
will show what you need. As long as wherever your creating the tars shows more FREE space than the / then it's ok...

billamn 08-17-2006 01:26 AM

Thanks guys. Everything worked out. I'd like to know how to make an image of it with Norton Ghost sometime in the near future.


All times are GMT -5. The time now is 06:31 PM.