Linux Backup
am 07.04.2005 01:59:05 von smertz
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
Re: Linux Backup
am 07.04.2005 04:18:30 von Jim Nelson
-----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
iD8DBQFCVJh2evfmjTWdv3MRAlFPAKCHxxwVxbbUqtUhg6myRIE5mBjdNgCf XkIs
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
Re: Linux Backup
am 07.04.2005 05:39:00 von Eric Bambach
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 n=
ew
> 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 wa=
y
> 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 ca=
n copy=20
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 dr=
ive (or=20
even your root drive and you boot from a rescue cd) the simplest most=20
effective way to image a drive is dd.
On same machine where you are saving myimagefile on another disk with e=
nough=20
space for a full image.
dd if=3D/dev/hda of=3D./myimagefile
(DO NOT DO NOT EVER MIX UP "if" AND "of" )
if =3D IN
of =3D 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. Personal=
ly dd=20
backups and restores have a neat place when you need to image machines.=
Boot=20
from CD and use it over SSH and the network at times for a simple brute=
force=20
complete backup.
ssh ip.of.image.server -l loginname dd if=3D/home/image/computer.image =
| dd=20
of=3D/dev/hda
or to save a machine over the network:
ssh ip.of.image.server -l loginname dd=3D/dev/hda | dd=20
of=3D/home/image/newcomputer.image
To just capture a particular tree in a filesystem tar is quick, simple =
and a=20
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=20
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-newbi=
e" 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
--=20
----------------------------------------
--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-Decembe=
r 08,2000=20
----------------------------------------
-
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
RE: Linux Backup
am 07.04.2005 14:46:55 von Mike Turcotte
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