LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-06-2006, 01:35 AM   #1
asif2k
Member
 
Registered: Mar 2006
Location: Texas
Distribution: Fedora Project
Posts: 79

Rep: Reputation: 15
don't know how to backup server?? newbie


I am trying to backup my server. I am not sure how to do it? I have backed up all my web files that are in /var/www/html & /home/user/public_html. I am using Fedora Core 4. I have a primary master harddrive. I have a primary slave harddrive that is all empty. So, how do I mount the primary slave hd and use the dd comand to back up the whole OS. How do I use the dd comand? I have never done this before. what other ways are there to do backups on servers? I am a total newbie at this. First time for everything.

thanks in advance
 
Old 04-06-2006, 01:48 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
The primary master is /dev/hda, the primary slave is /dev/hdb

use fdisk -l to see the partitions.

There are many ways to use an additional hard drive as a backup - following is the most basic:

fdisk (man fdisk) can be used to format hdb if it isn't already.
lets say you make one big partition, hda1, which is ext3.
you also make a mountpoint, say, /mnt/bak, to put it.
Then all you need to do is: mount -t ext3 /dev/hdb1 /mnt/bak (man mount)

Now you have tons of space in /mnt/bak to keep stuff in.

(You can make an entry in /etc/fstab so this drive will mount when you boot - but, as it is a backup, you may only want it mounted when you are actually storing or retreaving files.)

You will want to archive your system into /mnt/bak (man tar) ... what you want to keep is up to you. You could archive the entire file system if you wanted.

The entire process can be written to a script which is run as a cron job. (man crontab)

If you want /dev/hdb to be a mirror copy of /dev/hda, then you want to look at RAID.

So... what sort of backup strategy were you thinking of?
 
  


Reply


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 05:15 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
server backup booyah Linux - Networking 5 01-18-2004 08:54 AM
newbie file backup question samiam Linux - General 2 11-14-2001 02:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 04:33 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