public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
* Linux Backup
@ 2005-04-06 23:59 smertz
  2005-04-07  2:18 ` Jim Nelson
  2005-04-07  3:39 ` Eric Bambach
  0 siblings, 2 replies; 4+ messages in thread
From: smertz @ 2005-04-06 23:59 UTC (permalink / raw)
  To: linux-newbie

I have spent a great deal of time on simple things in Linux as I am new 
over the last week (No better way to learn)  But I don't want to 
re-learn in case the proverbial Hard Drive dies, so what is a good way 
to back up my system? On my 2 Windows XP machines I use Ghost 9.  Is 
there similar thing to copy a Linux drive?

Or can I simply do something like an XCOPY from one drive to a second 
one as a backup?

I am using Red Hat Enterprise Linux ES release 4 (Nahant)
on a home Workgroup as a File and print server - If I ever get Samba set 
up correctly. Any suggestions appriciated.

Thanks

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Linux Backup
  2005-04-06 23:59 Linux Backup smertz
@ 2005-04-07  2:18 ` Jim Nelson
  2005-04-07  3:39 ` Eric Bambach
  1 sibling, 0 replies; 4+ messages in thread
From: Jim Nelson @ 2005-04-07  2:18 UTC (permalink / raw)
  To: smertens; +Cc: linux-newbie

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

smertz wrote:
> I have spent a great deal of time on simple things in Linux as I am new
> over the last week (No better way to learn)  But I don't want to
> re-learn in case the proverbial Hard Drive dies, so what is a good way
> to back up my system? On my 2 Windows XP machines I use Ghost 9.  Is
> there similar thing to copy a Linux drive?
> 
> Or can I simply do something like an XCOPY from one drive to a second
> one as a backup?
> 
> I am using Red Hat Enterprise Linux ES release 4 (Nahant)
> on a home Workgroup as a File and print server - If I ever get Samba set
> up correctly. Any suggestions appriciated.
> 
> Thanks
> 

$ man rsync

I use rsync over NFS to back up my file server to another machine - there are a
lot of options available.

On the same machine, you can use dd to copy partitions, but it is tremendously
slow.  It is the only way to get a full disk image, though - it's the best thing
I've found for backing up Windows and BIOS boot floppies.

Jim

- --
GPG key available
gpg --keyserver pgp.mit.edu --recv-keys 359DBF73

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFCVJh2evfmjTWdv3MRAlFPAKCHxxwVxbbUqtUhg6myRIE5mBjdNgCfXkIs
KSkDzRNsCsSnhfmngO9IJjc=
=7d4R
-----END PGP SIGNATURE-----
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Linux Backup
  2005-04-06 23:59 Linux Backup smertz
  2005-04-07  2:18 ` Jim Nelson
@ 2005-04-07  3:39 ` Eric Bambach
  1 sibling, 0 replies; 4+ messages in thread
From: Eric Bambach @ 2005-04-07  3:39 UTC (permalink / raw)
  To: smertens; +Cc: linux-newbie

On Wednesday 06 April 2005 06:59 pm, smertz wrote:
> I have spent a great deal of time on simple things in Linux as I am new
> over the last week (No better way to learn)  But I don't want to
> re-learn in case the proverbial Hard Drive dies, so what is a good way
> to back up my system? On my 2 Windows XP machines I use Ghost 9.  Is
> there similar thing to copy a Linux drive?
> Or can I simply do something like an XCOPY from one drive to a second
> one as a backup?
Of course!

cp -dvxpR /home/myimportantfiles /disk2/backupfolder/

Note that the x flag prevents it from crossing mount barriers so you can copy 
the root filesystem onto a disk thats mounted UNDER the root filesystem.

cp -dvxpR / /disk2/backupfolder/

A simple a quite brute force way to backup is dd ;)
If you have a hard drive thats not mounted and that is NOT your root drive (or 
even your root drive and you boot from a rescue cd) the simplest most 
effective way to image a drive is dd.

On same machine where you are saving myimagefile on another disk with enough 
space for a full image.

dd if=/dev/hda of=./myimagefile

(DO NOT DO NOT EVER MIX UP "if" AND "of" )
if = IN
of = OUT
This is where alot of sysadmins can nuke disks ;)
Know what you are saving and where you are saving it to.

You can also do cool things like run it through bzip and gzip. Personally dd 
backups and restores have a neat place when you need to image machines.Boot 
from CD and use it over SSH and the network at times for a simple brute force 
complete backup.

ssh ip.of.image.server -l loginname dd if=/home/image/computer.image | dd 
of=/dev/hda

or to save a machine over the network:

ssh ip.of.image.server -l loginname dd=/dev/hda | dd 
of=/home/image/newcomputer.image

To just capture a particular tree in a filesystem tar is quick, simple and a 
standard Unix tool.

tar -cvf mybackup.tar MyFolder
or
tar -cjvf mycompressedbackup.tar.bz2 MyFolder

Those are some quick pointers off the top of my head. Let me know if I went to 
fast or you want a particular method explained in depth. HTH!

> I am using Red Hat Enterprise Linux ES release 4 (Nahant)
> on a home Workgroup as a File and print server - If I ever get Samba set
> up correctly. Any suggestions appriciated.
>
> Thanks
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs

-- 
----------------------------------------
--EB

> All is fine except that I can reliably "oops" it simply by trying to read
> from /proc/apm (e.g. cat /proc/apm).
> oops output and ksymoops-2.3.4 output is attached.
> Is there anything else I can contribute?

The latitude and longtitude of the bios writers current position, and
a ballistic missile.

                --Alan Cox LKML-December 08,2000 

----------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE:  Linux Backup
@ 2005-04-07 12:46 Mike Turcotte
  0 siblings, 0 replies; 4+ messages in thread
From: Mike Turcotte @ 2005-04-07 12:46 UTC (permalink / raw)
  To: linux-newbie

I recently tried using DAR on my Gentoo machine. This program works
great as it has a $#!7 load of options including compression. One of the
greatest features of this program is that it can split up its output
file into user definable sized chunks so you can easily put it onto your
choice of media. If you are writing directly to say a DVD-RW, there is
even an option to have the program detect when the disc is full and it
will pause until you insert a blank one.

Michael Turcotte
Information Systems
City of North Bay
200 McIntyre St. E
PO Box 360
North Bay, Ontario
P1B 8H8
 
Mike.Turcotte@cityofnorthbay.ca
http://www.cityofnorthbay.ca 

> -----Original Message-----
> From: linux-newbie-owner@vger.kernel.org [mailto:linux-newbie-
> owner@vger.kernel.org] On Behalf Of smertz
> Sent: Wednesday, April 06, 2005 7:59 PM
> To: linux-newbie@vger.kernel.org
> Subject: Linux Backup
> 
> I have spent a great deal of time on simple things in Linux as I am
new
> over the last week (No better way to learn)  But I don't want to
> re-learn in case the proverbial Hard Drive dies, so what is a good way
> to back up my system? On my 2 Windows XP machines I use Ghost 9.  Is
> there similar thing to copy a Linux drive?
> 
> Or can I simply do something like an XCOPY from one drive to a second
> one as a backup?
> 
> I am using Red Hat Enterprise Linux ES release 4 (Nahant)
> on a home Workgroup as a File and print server - If I ever get Samba
set
> up correctly. Any suggestions appriciated.
> 
> Thanks
> 
> -
> To unsubscribe from this list: send the line "unsubscribe
linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-04-07 12:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-06 23:59 Linux Backup smertz
2005-04-07  2:18 ` Jim Nelson
2005-04-07  3:39 ` Eric Bambach
  -- strict thread matches above, loose matches on Subject: below --
2005-04-07 12:46 Mike Turcotte

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox