Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: philippe peltier on June 19, 2003, 05:37:29 PM
-
Hello !
How the hell is it possible to restore a from afull backyp with that damned flexbackup ???
(using a sme 5.5)
I saved my disk on tape with 'flexbackup -fs all'
Everything went fine
Nom I'm trying to restore a file (fortunately I did not make blind confidence to the good results of the backup log...Wha it if I messed up my config and had to reload it...).
When I catalog the tape whith a 'flexbackup -toc all' I get a list of 3 levels
0: index of tape
1: / directory
2: /root directory
When I the do a 'flexbackup -list', I get exclusively the content of /root
when I try a 'flexbackup -list -num 1, I get /root list too...
And of course, whenever I try to restore anything under " / " , I get bounced...
Using the flexbackup rpm from the server-manager does not work better though...
HEEEELP !!! Whad to I have to do to restore a directory normally ?????
Tnx in advance.
--
Phil.
-
Well getting mad wont help you, but you can try the following...
mt -f /dev/nst0 rewind
mt -f /dev/nst0 fsf
flexbackup -list > restore.txt
Once you happy that the tape has backed up everything then using the list created above run....
mt -f "/dev/nst0" rewind
mt -f "/dev/nst0" fsf
cd /
flexbackup -extract -file /root/restore.txt
I have had no problems doing this is the past, now we use DVD-R's much better and quicker
Hope this help's
Byte
-
byte wrote:
>
> Well getting mad wont help you, but you can try the
> following...
>
> mt -f /dev/nst0 rewind
> mt -f /dev/nst0 fsf
> flexbackup -list > restore.txt
The problem is : if I do that I will get the content of /root only in my restore.txt file, but I don't find the content of "/", although it has been clearly and successfully backed up. I tried moving the tape to another server : it's worse... 'flexbackup -toc all' does not see the index any more, and 'flexbackup -list' keeps on seeing only /boot.
My problem is that I need to clone several 5.5 servers from a 'prototype' and need to use a tape for this, and although the backup works well (thus said the log...lol) how can I access to the / directory saved on the tape ???
--
Phil.
-
philippe peltier wrote:
> The problem is : if I do that I will get the content of /root
> only in my restore.txt file, but I don't find the content of
> "/", although it has been clearly and successfully backed up.
> I tried moving the tape to another server : it's worse...
> 'flexbackup -toc all' does not see the index any more, and
> 'flexbackup -list' keeps on seeing only /boot.
These symptoms suggest that you are not using the non-rewind tape device, so the tape is rewinding between your creation of the index, backup of / and backup of /root - leaving only the backup of /root on the tape. Use /dev/nst0, not /dev/st0 (or equivalent for IDE tape).
Charlie
-
How about using Ghost to create an image to a CD-R from the prototype, and then you can clone ahead.... Much quicker...
Per
-
Philippe,
How about trying something like this series of commands (assuming your tape is recognised as /dev/st0), (sorry, it's not complete as I could not find how to restore the SQL tables, etc., plus I've also forgotten the exact syntax for the tar restore so I'm guessing - man tar or just test and see) :-
To do a full backup :-
# /sbin/e-smith/signal-event pre-backup
# tar cvf /dev/st0 /
# /sbin/e-smith/signal-event post-backup
To do a full restore :-
# cd /
# /sbin/e-smith/signal-event pre-restore
# tar xvf /dev/st0 /
# /sbin/e-smith/signal-event post-restore
Just a suggestion.
Kelvin
-
Charlie Brady wrote:
>
> These symptoms suggest that you are not using the non-rewind
> tape device, so the tape is rewinding between your creation
> of the index, backup of / and backup of /root - leaving only
> the backup of /root on the tape. Use /dev/nst0, not /dev/st0
> (or equivalent for IDE tape).
>
> Charlie
You're right, I'm using /dev/st0 .. I will try /dev/nst0.
Thanks a lot.
--
Phil.
-
Per Sørensen wrote:
>
> How about using Ghost to create an image to a CD-R from the
> prototype, and then you can clone ahead.... Much quicker...
>
> Per
Alas.. The machines I have to set up have no floppies nor CDs... Problem with ghost.. ;-)
--
Phil.
-
Kelvin wrote:
>
> Philippe,
>
> How about trying something like this series of commands
> (assuming your tape is recognised as /dev/st0), (sorry, it's
> not complete as I could not find how to restore the SQL
> tables, etc., plus I've also forgotten the exact syntax for
> the tar restore so I'm guessing - man tar or just test and
> see) :-
>
> To do a full backup :-
> # /sbin/e-smith/signal-event pre-backup
> # tar cvf /dev/st0 /
> # /sbin/e-smith/signal-event post-backup
>
>
> To do a full restore :-
> # cd /
> # /sbin/e-smith/signal-event pre-restore
> # tar xvf /dev/st0 /
> # /sbin/e-smith/signal-event post-restore
>
> Just a suggestion.
>
> Kelvin
Looks fine, I'm going to try this too..
Thanks a lot.
--
Phil.
-
dear philippe,
as long a it is ext2 (eg SME5.5) then ghost ide to ide works smooth.
Make the perfect build & just keep pluging drives in until you have enough copies
with ext3 (eg sme5.6) I have only had sucess with dd, a linux disk duplicating tool, the same way you make a boot disk under linux.
adam