 |
Page 1 of 1
|
| Author |
Message |
Gavin Henry
Guest
|
 Rebuilding my backup server
Dear all,
Disaster strikes!!!
My Red Hat 8.0 backup server hard drive has died, and I need some advice in rebuilding it.
I have all the backups tapes and I have backup up /etc /home /var and a few other things.
My question is, "How do I get all the configuration files back from the tapes without having
Amanda installed?
Any tips would be great!!!
Gavin.
******************************************************************************
Kind Regards,
Gavin Henry.
BEng (Hons) MIEE
Engineer
Invsat Ltd.
Discovery Drive,
Arnhall Business Park,
Westhill,
Aberdeen,
AB32 6FG.
www.invsat.com
Tel: + 44 (0) 1224 428453
Fax: + 44 (0) 1224 428401
e-mail: gavin.henry < at > invsat.com
******************************************************************************
The information contained in the message above may be privileged and confidential
and is intended for the use of the individual or entity named above. If you are
not the intended recipient, please contact the sender as soon as possible and be
aware that copying, disclosure, distribution or use of this information is prohibited.
|
| Thu Jul 01, 2004 11:58 pm |
|
 |
Paul Bijnens
Guest
|
 Rebuilding my backup server
Gavin Henry wrote:
Disaster strikes!!!
My Red Hat 8.0 backup server hard drive has died, and I need some advice in rebuilding it.
I have all the backups tapes and I have backup up /etc /home /var and a few other things.
My question is, "How do I get all the configuration files back from the tapes without having
Amanda installed?
Any tips would be great!!!
Tip one: stay calm.
Tip two: Read docs/RESTORE.
In short: As root do:
use basic unix commands to position tape like:
mt -f /dev/nst0 fsf 1
use basic dd to read the 32k header of each file on tape:
dd if=/dev/rmt/0n bs=32k count=1
And notice it contains the command you need to type to restore
that backup image:
(position again using mt above, and cd to the correct top
directory!)
dd if=/dev/nst0 bs=32k skip=1 | gzip -d | gtar -xpvf -
--
Paul Bijnens, Xplanation Tel +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM Fax +32 16 397.512
http://www.xplanation.com/ email: Paul.Bijnens < at > xplanation.com
***********************************************************************
* I think I've got the hang of it now: exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt, abort, hangup, *
* PF4, F20, ^X^X,  :  , KJOB, F14-f-e, F8-e, kill -1 $$, shutdown, *
* kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ... "Are you sure?" ... YES ... Phew ... I'm out *
***********************************************************************
|
| Fri Jul 02, 2004 12:56 am |
|
 |
Gene Heskett
Guest
|
 Rebuilding my backup server
On Friday 02 July 2004 03:56, Gavin Henry wrote:
Dear all,
Disaster strikes!!!
My Red Hat 8.0 backup server hard drive has died, and I need some
advice in rebuilding it.
I have all the backups tapes and I have backup up /etc /home /var
and a few other things.
My question is, "How do I get all the configuration files back from
the tapes without having Amanda installed?
Any tips would be great!!!
In a pinch (ouch) all you really need are mt, dd, gunzip (gzip -d) and
tar. The basic procedure goes something like this:
1. cd to someplace with lots of scratch room for the untared files.
2. Rewind the tape with mt.
3. read the tape label with dd using count=1 and no output spec, it
should come out on the screen of your shell, identifying the tape and
the date it was made.
4. do this again to get the files header, so you can see if you need
to pipe dd's output file thru gzip before handing it to tar.
5. dd again, this time useing a very large count, and feed that to
gzip if needed, otherwise straight to tar. It will stop regardless
of the actual count at the end of that tape file.
6. handle what you've got unpacked, putting it where it belongs.
7. goto 4, until eod of the tape, then start on the next tape at 2,
doing this in the same sequence the tapes were made so that any
overwrites you do as you put stuff back will always be with a newer
version.
Fairly simple, but time consuming I'm afraid.
--
Cheers, Gene
There are 4 boxes to be used in defense of liberty.
Soap, ballot, jury, and ammo.
Please use in that order, starting now. -Ed Howdershelt, Author
Additions to this message made by Gene Heskett are Copyright 2004,
Maurice E. Heskett, all rights reserved.
|
| Fri Jul 02, 2004 1:00 am |
|
 |
Martin Hepworth
Guest
|
 Rebuilding my backup server
Gavin
gab a copy of knoppix.
This a live cd version of Linux - ie you boot from it and you have a
fully working linux from cd - doesn't touch the hard drive.
You can then run mount the hd drive, setup the ethernet (if not DHCP)
and run amrestore/amrecover as needed (it's part of the knoppix
distribution).
--
Martin Hepworth
Snr Systems Administrator
Solid State Logic
Tel: +44 (0)1865 842300
Gavin Henry wrote:
Dear all,
Disaster strikes!!!
My Red Hat 8.0 backup server hard drive has died, and I need some advice in rebuilding it.
I have all the backups tapes and I have backup up /etc /home /var and a few other things.
My question is, "How do I get all the configuration files back from the tapes without having
Amanda installed?
Any tips would be great!!!
Gavin.
******************************************************************************
Kind Regards,
Gavin Henry.
BEng (Hons) MIEE
Engineer
Invsat Ltd.
Discovery Drive,
Arnhall Business Park,
Westhill,
Aberdeen,
AB32 6FG.
www.invsat.com
Tel: + 44 (0) 1224 428453
Fax: + 44 (0) 1224 428401
e-mail: gavin.henry < at > invsat.com
******************************************************************************
The information contained in the message above may be privileged and confidential
and is intended for the use of the individual or entity named above. If you are
not the intended recipient, please contact the sender as soon as possible and be
aware that copying, disclosure, distribution or use of this information is prohibited.
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote confirms that this email message has been swept
for the presence of computer viruses and is believed to be clean.
**********************************************************************
|
| Fri Jul 02, 2004 1:32 am |
|
 |
Gavin Henry
Guest
|
 Rebuilding my backup server
Thanks. I will print the docs and these e-mails out and start tonight. (sorry to top posting)
-----Original Message-----
From: owner-amanda-users < at > amanda.org
[mailto:owner-amanda-users < at > amanda.org]On Behalf Of Gene Heskett
Sent: 02 July 2004 09:55
To: amanda-users < at > amanda.org
Subject: Re: Rebuilding my backup server
On Friday 02 July 2004 03:56, Gavin Henry wrote:
Dear all,
Disaster strikes!!!
My Red Hat 8.0 backup server hard drive has died, and I need some
advice in rebuilding it.
I have all the backups tapes and I have backup up /etc /home /var
and a few other things.
My question is, "How do I get all the configuration files back from
the tapes without having Amanda installed?
Any tips would be great!!!
In a pinch (ouch) all you really need are mt, dd, gunzip (gzip -d) and
tar. The basic procedure goes something like this:
1. cd to someplace with lots of scratch room for the untared files.
2. Rewind the tape with mt.
3. read the tape label with dd using count=1 and no output spec, it
should come out on the screen of your shell, identifying the tape and
the date it was made.
4. do this again to get the files header, so you can see if you need
to pipe dd's output file thru gzip before handing it to tar.
5. dd again, this time useing a very large count, and feed that to
gzip if needed, otherwise straight to tar. It will stop regardless
of the actual count at the end of that tape file.
6. handle what you've got unpacked, putting it where it belongs.
7. goto 4, until eod of the tape, then start on the next tape at 2,
doing this in the same sequence the tapes were made so that any
overwrites you do as you put stuff back will always be with a newer
version.
Fairly simple, but time consuming I'm afraid.
--
Cheers, Gene
There are 4 boxes to be used in defense of liberty.
Soap, ballot, jury, and ammo.
Please use in that order, starting now. -Ed Howdershelt, Author
Additions to this message made by Gene Heskett are Copyright 2004,
Maurice E. Heskett, all rights reserved.
|
| Fri Jul 02, 2004 1:35 am |
|
 |
Gavin Henry
Guest
|
 Rebuilding my backup server
I do use knoppix heavily, maybe it's my ignorance, but how will it know what to restore without my disklists and conf files?
-----Original Message-----
From: Martin Hepworth [mailto:martinh < at > solid-state-logic.com]
Sent: 02 July 2004 10:18
To: Gavin Henry
Cc: amanda-users < at > amanda.org
Subject: Re: Rebuilding my backup server
Gavin
gab a copy of knoppix.
This a live cd version of Linux - ie you boot from it and you have a
fully working linux from cd - doesn't touch the hard drive.
You can then run mount the hd drive, setup the ethernet (if not DHCP)
and run amrestore/amrecover as needed (it's part of the knoppix
distribution).
--
Martin Hepworth
Snr Systems Administrator
Solid State Logic
Tel: +44 (0)1865 842300
Gavin Henry wrote:
Dear all,
Disaster strikes!!!
My Red Hat 8.0 backup server hard drive has died, and I need some advice in rebuilding it.
I have all the backups tapes and I have backup up /etc /home /var and a few other things.
My question is, "How do I get all the configuration files back from the tapes without having
Amanda installed?
Any tips would be great!!!
Gavin.
******************************************************************************
Kind Regards,
Gavin Henry.
BEng (Hons) MIEE
Engineer
Invsat Ltd.
Discovery Drive,
Arnhall Business Park,
Westhill,
Aberdeen,
AB32 6FG.
www.invsat.com
Tel: + 44 (0) 1224 428453
Fax: + 44 (0) 1224 428401
e-mail: gavin.henry < at > invsat.com
******************************************************************************
The information contained in the message above may be privileged and confidential
and is intended for the use of the individual or entity named above. If you are
not the intended recipient, please contact the sender as soon as possible and be
aware that copying, disclosure, distribution or use of this information is prohibited.
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote confirms that this email message has been swept
for the presence of computer viruses and is believed to be clean.
**********************************************************************
|
| Fri Jul 02, 2004 1:45 am |
|
 |
Martin Hepworth
Guest
|
 Rebuilding my backup server
Gavin
(got coffee now and read the bit about *backup* server died :-)
I think you already got the advice about doing a manual restore of the
proper files.
If you've got a knoppix disk you MAY be able to get the conf files etc
off the broken disk by mounting the disk and copying to a USB keydisk
thing. Depends on how borken the disk is - ie will it mount and how
good your debugfs skills are if it won't mount..
--
Martin Hepworth
Snr Systems Administrator
Solid State Logic
Tel: +44 (0)1865 842300
Gavin Henry wrote:
I do use knoppix heavily, maybe it's my ignorance, but how will it know what to restore without my disklists and conf files?
-----Original Message-----
From: Martin Hepworth [mailto:martinh < at > solid-state-logic.com]
Sent: 02 July 2004 10:18
To: Gavin Henry
Cc: amanda-users < at > amanda.org
Subject: Re: Rebuilding my backup server
Gavin
gab a copy of knoppix.
This a live cd version of Linux - ie you boot from it and you have a
fully working linux from cd - doesn't touch the hard drive.
You can then run mount the hd drive, setup the ethernet (if not DHCP)
and run amrestore/amrecover as needed (it's part of the knoppix
distribution).
--
Martin Hepworth
Snr Systems Administrator
Solid State Logic
Tel: +44 (0)1865 842300
Gavin Henry wrote:
Dear all,
Disaster strikes!!!
My Red Hat 8.0 backup server hard drive has died, and I need some advice in rebuilding it.
I have all the backups tapes and I have backup up /etc /home /var and a few other things.
My question is, "How do I get all the configuration files back from the tapes without having
Amanda installed?
Any tips would be great!!!
Gavin.
******************************************************************************
Kind Regards,
Gavin Henry.
BEng (Hons) MIEE
Engineer
Invsat Ltd.
Discovery Drive,
Arnhall Business Park,
Westhill,
Aberdeen,
AB32 6FG.
www.invsat.com
Tel: + 44 (0) 1224 428453
Fax: + 44 (0) 1224 428401
e-mail: gavin.henry < at > invsat.com
******************************************************************************
The information contained in the message above may be privileged and confidential
and is intended for the use of the individual or entity named above. If you are
not the intended recipient, please contact the sender as soon as possible and be
aware that copying, disclosure, distribution or use of this information is prohibited.
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote confirms that this email message has been swept
for the presence of computer viruses and is believed to be clean.
**********************************************************************
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote confirms that this email message has been swept
for the presence of computer viruses and is believed to be clean.
**********************************************************************
|
| Fri Jul 02, 2004 2:12 am |
|
 |
Gavin Henry
Guest
|
 Rebuilding my backup server
Good idea, I think it will mount, but my cdrom is also dead :-(
I need to buy one.
-----Original Message-----
From: Martin Hepworth [mailto:martinh < at > solid-state-logic.com]
Sent: 02 July 2004 11:08
To: Gavin Henry
Cc: amanda-users < at > amanda.org
Subject: Re: Rebuilding my backup server
Gavin
(got coffee now and read the bit about *backup* server died :-)
I think you already got the advice about doing a manual restore of the
proper files.
If you've got a knoppix disk you MAY be able to get the conf files etc
off the broken disk by mounting the disk and copying to a USB keydisk
thing. Depends on how borken the disk is - ie will it mount and how
good your debugfs skills are if it won't mount..
--
Martin Hepworth
Snr Systems Administrator
Solid State Logic
Tel: +44 (0)1865 842300
Gavin Henry wrote:
I do use knoppix heavily, maybe it's my ignorance, but how will it know what to restore without my disklists and conf files?
-----Original Message-----
From: Martin Hepworth [mailto:martinh < at > solid-state-logic.com]
Sent: 02 July 2004 10:18
To: Gavin Henry
Cc: amanda-users < at > amanda.org
Subject: Re: Rebuilding my backup server
Gavin
gab a copy of knoppix.
This a live cd version of Linux - ie you boot from it and you have a
fully working linux from cd - doesn't touch the hard drive.
You can then run mount the hd drive, setup the ethernet (if not DHCP)
and run amrestore/amrecover as needed (it's part of the knoppix
distribution).
--
Martin Hepworth
Snr Systems Administrator
Solid State Logic
Tel: +44 (0)1865 842300
Gavin Henry wrote:
Dear all,
Disaster strikes!!!
My Red Hat 8.0 backup server hard drive has died, and I need some advice in rebuilding it.
I have all the backups tapes and I have backup up /etc /home /var and a few other things.
My question is, "How do I get all the configuration files back from the tapes without having
Amanda installed?
Any tips would be great!!!
Gavin.
******************************************************************************
Kind Regards,
Gavin Henry.
BEng (Hons) MIEE
Engineer
Invsat Ltd.
Discovery Drive,
Arnhall Business Park,
Westhill,
Aberdeen,
AB32 6FG.
www.invsat.com
Tel: + 44 (0) 1224 428453
Fax: + 44 (0) 1224 428401
e-mail: gavin.henry < at > invsat.com
******************************************************************************
The information contained in the message above may be privileged and confidential
and is intended for the use of the individual or entity named above. If you are
not the intended recipient, please contact the sender as soon as possible and be
aware that copying, disclosure, distribution or use of this information is prohibited.
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote confirms that this email message has been swept
for the presence of computer viruses and is believed to be clean.
**********************************************************************
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote confirms that this email message has been swept
for the presence of computer viruses and is believed to be clean.
**********************************************************************
|
| Fri Jul 02, 2004 2:23 am |
|
 |
Martin Hepworth
Guest
|
 Rebuilding my backup server
Gavin
sure its the HD then and not the IDE - or is the disk SCSI??
CD-ROM drives are cheap anyhow..
Now that 1GB usb keyfob things are < £200 I wonder how long it will
before we a knoppix for a USB dongle (for BIOS'es that can boot from
these things!)
--
Martin Hepworth
Snr Systems Administrator
Solid State Logic
Tel: +44 (0)1865 842300
Gavin Henry wrote:
Good idea, I think it will mount, but my cdrom is also dead :-(
I need to buy one.
-----Original Message-----
From: Martin Hepworth [mailto:martinh < at > solid-state-logic.com]
Sent: 02 July 2004 11:08
To: Gavin Henry
Cc: amanda-users < at > amanda.org
Subject: Re: Rebuilding my backup server
Gavin
(got coffee now and read the bit about *backup* server died :-)
I think you already got the advice about doing a manual restore of the
proper files.
If you've got a knoppix disk you MAY be able to get the conf files etc
off the broken disk by mounting the disk and copying to a USB keydisk
thing. Depends on how borken the disk is - ie will it mount and how
good your debugfs skills are if it won't mount..
--
Martin Hepworth
Snr Systems Administrator
Solid State Logic
Tel: +44 (0)1865 842300
Gavin Henry wrote:
I do use knoppix heavily, maybe it's my ignorance, but how will it know what to restore without my disklists and conf files?
-----Original Message-----
From: Martin Hepworth [mailto:martinh < at > solid-state-logic.com]
Sent: 02 July 2004 10:18
To: Gavin Henry
Cc: amanda-users < at > amanda.org
Subject: Re: Rebuilding my backup server
Gavin
gab a copy of knoppix.
This a live cd version of Linux - ie you boot from it and you have a
fully working linux from cd - doesn't touch the hard drive.
You can then run mount the hd drive, setup the ethernet (if not DHCP)
and run amrestore/amrecover as needed (it's part of the knoppix
distribution).
--
Martin Hepworth
Snr Systems Administrator
Solid State Logic
Tel: +44 (0)1865 842300
Gavin Henry wrote:
Dear all,
Disaster strikes!!!
My Red Hat 8.0 backup server hard drive has died, and I need some advice in rebuilding it.
I have all the backups tapes and I have backup up /etc /home /var and a few other things.
My question is, "How do I get all the configuration files back from the tapes without having
Amanda installed?
Any tips would be great!!!
Gavin.
******************************************************************************
Kind Regards,
Gavin Henry.
BEng (Hons) MIEE
Engineer
Invsat Ltd.
Discovery Drive,
Arnhall Business Park,
Westhill,
Aberdeen,
AB32 6FG.
www.invsat.com
Tel: + 44 (0) 1224 428453
Fax: + 44 (0) 1224 428401
e-mail: gavin.henry < at > invsat.com
******************************************************************************
The information contained in the message above may be privileged and confidential
and is intended for the use of the individual or entity named above. If you are
not the intended recipient, please contact the sender as soon as possible and be
aware that copying, disclosure, distribution or use of this information is prohibited.
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote confirms that this email message has been swept
for the presence of computer viruses and is believed to be clean.
**********************************************************************
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote confirms that this email message has been swept
for the presence of computer viruses and is believed to be clean.
**********************************************************************
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote confirms that this email message has been swept
for the presence of computer viruses and is believed to be clean.
**********************************************************************
|
| Fri Jul 02, 2004 2:35 am |
|
 |
Gavin Henry
Guest
|
 Rebuilding my backup server
I think the whole lot needs replacing some time. I think the cdrom is just dead. I will try it in another machine.
I have and usb disks for some time, but the die quite a lot with all the read writes.
I have one now that you can only read. I even tried debug the controller stuff for it, but no joy.
-----Original Message-----
From: Martin Hepworth [mailto:martinh < at > solid-state-logic.com]
Sent: 02 July 2004 11:30
To: Gavin Henry
Cc: amanda-users < at > amanda.org
Subject: Re: Rebuilding my backup server
Gavin
sure its the HD then and not the IDE - or is the disk SCSI??
CD-ROM drives are cheap anyhow..
Now that 1GB usb keyfob things are < £200 I wonder how long it will
before we a knoppix for a USB dongle (for BIOS'es that can boot from
these things!)
--
Martin Hepworth
Snr Systems Administrator
Solid State Logic
Tel: +44 (0)1865 842300
Gavin Henry wrote:
Good idea, I think it will mount, but my cdrom is also dead :-(
I need to buy one.
-----Original Message-----
From: Martin Hepworth [mailto:martinh < at > solid-state-logic.com]
Sent: 02 July 2004 11:08
To: Gavin Henry
Cc: amanda-users < at > amanda.org
Subject: Re: Rebuilding my backup server
Gavin
(got coffee now and read the bit about *backup* server died :-)
I think you already got the advice about doing a manual restore of the
proper files.
If you've got a knoppix disk you MAY be able to get the conf files etc
off the broken disk by mounting the disk and copying to a USB keydisk
thing. Depends on how borken the disk is - ie will it mount and how
good your debugfs skills are if it won't mount..
--
Martin Hepworth
Snr Systems Administrator
Solid State Logic
Tel: +44 (0)1865 842300
Gavin Henry wrote:
I do use knoppix heavily, maybe it's my ignorance, but how will it know what to restore without my disklists and conf files?
-----Original Message-----
From: Martin Hepworth [mailto:martinh < at > solid-state-logic.com]
Sent: 02 July 2004 10:18
To: Gavin Henry
Cc: amanda-users < at > amanda.org
Subject: Re: Rebuilding my backup server
Gavin
gab a copy of knoppix.
This a live cd version of Linux - ie you boot from it and you have a
fully working linux from cd - doesn't touch the hard drive.
You can then run mount the hd drive, setup the ethernet (if not DHCP)
and run amrestore/amrecover as needed (it's part of the knoppix
distribution).
--
Martin Hepworth
Snr Systems Administrator
Solid State Logic
Tel: +44 (0)1865 842300
Gavin Henry wrote:
Dear all,
Disaster strikes!!!
My Red Hat 8.0 backup server hard drive has died, and I need some advice in rebuilding it.
I have all the backups tapes and I have backup up /etc /home /var and a few other things.
My question is, "How do I get all the configuration files back from the tapes without having
Amanda installed?
Any tips would be great!!!
Gavin.
******************************************************************************
Kind Regards,
Gavin Henry.
BEng (Hons) MIEE
Engineer
Invsat Ltd.
Discovery Drive,
Arnhall Business Park,
Westhill,
Aberdeen,
AB32 6FG.
www.invsat.com
Tel: + 44 (0) 1224 428453
Fax: + 44 (0) 1224 428401
e-mail: gavin.henry < at > invsat.com
******************************************************************************
The information contained in the message above may be privileged and confidential
and is intended for the use of the individual or entity named above. If you are
not the intended recipient, please contact the sender as soon as possible and be
aware that copying, disclosure, distribution or use of this information is prohibited.
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote confirms that this email message has been swept
for the presence of computer viruses and is believed to be clean.
**********************************************************************
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote confirms that this email message has been swept
for the presence of computer viruses and is believed to be clean.
**********************************************************************
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote confirms that this email message has been swept
for the presence of computer viruses and is believed to be clean.
**********************************************************************
|
| Fri Jul 02, 2004 2:41 am |
|
 |
Gavin Henry
Guest
|
 Rebuilding my backup server
Dear all,
Thanks for all your help.
I upgraded to Fedora Core 2 and got all my e-mails backs.
What I did, whcih I will be submitting a patch to the RESTORE doc is:
Installed the amanda RPM and used amrestore i.e.:
amrestore /dev/nst0 hostname '/etc$'
which searched for that partition.
I got the latest level 0, then level 1 for /etc and /home
Then used "tar -xvpf filename" to get all the files.
Much, much easier than mt -f /dev/nst0 fsf 1 and using dd.
Thoughts?
Gavin.
-----Original Message-----
From: Paul Bijnens [mailto:paul.bijnens < at > xplanation.com]
Sent: Fri 02/07/2004 09:40
To: Gavin Henry
Cc: amanda-users < at > amanda.org
Subject: Re: Rebuilding my backup server
Gavin Henry wrote:
Disaster strikes!!!
My Red Hat 8.0 backup server hard drive has died, and I need some advice in rebuilding it.
I have all the backups tapes and I have backup up /etc /home /var and a few other things.
My question is, "How do I get all the configuration files back from the tapes without having
Amanda installed?
Any tips would be great!!!
Tip one: stay calm.
Tip two: Read docs/RESTORE.
In short: As root do:
use basic unix commands to position tape like:
mt -f /dev/nst0 fsf 1
use basic dd to read the 32k header of each file on tape:
dd if=/dev/rmt/0n bs=32k count=1
And notice it contains the command you need to type to restore
that backup image:
(position again using mt above, and cd to the correct top
directory!)
dd if=/dev/nst0 bs=32k skip=1 | gzip -d | gtar -xpvf -
--
Paul Bijnens, Xplanation Tel +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM Fax +32 16 397.512
http://www.xplanation.com/ email: Paul.Bijnens < at > xplanation.com
***********************************************************************
* I think I've got the hang of it now: exit, ^D, ^C, ^, ^Z, ^Q, F6, *
* quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt, abort, hangup, *
* PF4, F20, ^X^X,  :  , KJOB, F14-f-e, F8-e, kill -1 $$, shutdown, *
* kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ... "Are you sure?" ... YES ... Phew ... I'm out *
***********************************************************************
|
| Sun Jul 04, 2004 11:55 pm |
|
 |
Eric Siegerman
Guest
|
 Rebuilding my backup server
On Fri, Jul 02, 2004 at 10:42:00AM +0100, Gavin Henry wrote:
I do use knoppix heavily, maybe it's my ignorance, but how will it know what to restore without my disklists and conf files?
You can't use amrecover until you get that stuff off the tape,
but you can use amrestore, which, by design, doesn't need any of
Amanda's on-disk data; all it needs is the backup media.
To start, you can use amrestore to get a coarse-grained overview
of the tape, using something like:
mt rewind
amrestore /dev/nst0 nonexistent-host-name
Amrestore (N.B., not amrecover) will happily trundle through the
tape looking for DLEs for "nonexistent-host-name", and in the
process of not finding any, it'll print a nice list of the files
on the tape.
A lot less painful than all those dd's...
--
| | /\
|-_|/ > Eric Siegerman, Toronto, Ont. erics < at > telepres.com
| | /
It must be said that they would have sounded better if the singer
wouldn't throw his fellow band members to the ground and toss the
drum kit around during songs.
- Patrick Lenneau
|
| Mon Jul 05, 2004 3:59 pm |
|
 |
Eric Siegerman
Guest
|
 Rebuilding my backup server
On Fri, Jul 02, 2004 at 04:54:58AM -0400, Gene Heskett wrote:
5. dd again, this time useing a very large count, and feed that to
gzip if needed, otherwise straight to tar.
Minor improvement: instead of "using a very large count", simply
don't provide a count= argument at all:
dd bs=32k skip=1 | whatever
Without a count=, dd will run till end-of-file, and not worry
about how many blocks it's copied.
--
| | /\
|-_|/ > Eric Siegerman, Toronto, Ont. erics < at > telepres.com
| | /
It must be said that they would have sounded better if the singer
wouldn't throw his fellow band members to the ground and toss the
drum kit around during songs.
- Patrick Lenneau
|
| Mon Jul 05, 2004 4:00 pm |
|
 |
Gene Heskett
Guest
|
 Rebuilding my backup server
On Monday 05 July 2004 19:54, Eric Siegerman wrote:
On Fri, Jul 02, 2004 at 04:54:58AM -0400, Gene Heskett wrote:
5. dd again, this time useing a very large count, and feed that to
gzip if needed, otherwise straight to tar.
Minor improvement: instead of "using a very large count", simply
don't provide a count= argument at all:
dd bs=32k skip=1 | whatever
Without a count=, dd will run till end-of-file, and not worry
about how many blocks it's copied.
Touche`!, I had forgotten that detail. Thanks for clarifying that.
--
Cheers, Gene
There are 4 boxes to be used in defense of liberty.
Soap, ballot, jury, and ammo.
Please use in that order, starting now. -Ed Howdershelt, Author
Additions to this message made by Gene Heskett are Copyright 2004,
Maurice E. Heskett, all rights reserved.
|
| Mon Jul 05, 2004 4:47 pm |
|
 |
|
|
The time now is Thu May 24, 2012 7:31 am | All times are GMT - 8 Hours
|
Page 1 of 1
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|