ADSM-L

Re: How can I restore files to another host and different

1997-02-06 08:37:48
Subject: Re: How can I restore files to another host and different
From: "Dwight E. Cook" <decook AT AMOCO DOT COM>
Date: Thu, 6 Feb 1997 07:37:48 -0600
Item Subject: 1.txt "internet headers"
Could not convert BINARY FILE item to text.
Will attempt to 'shar' item as file '01s7d27' at end of msg.

.......................................................................

Item Subject: How can I restore files to another host and different dirrectory
     OK, I know this works under AIX if your GOD/root and you've done a SET
     ACCESS  (Oh, and excuse my earlier note where I forgot to show
     specifying BACKUP or ARCHIVE in my example).  This is how we clone our
     SAP regions to other machines... works great, ALSO GIVES ME
     PEACE-OF-MIND in knowing that the SAP backups can/do build a complete
     functioning system
     later
          Dwight



______________________________ Reply Separator _________________________________
Subject: How can I restore files to another host and different dirr
Author:  ADSM-L (ADSM-L AT VM.MARIST DOT EDU) at unix,sh
Date:    2/5/97 9:51 PM


I be asked to restore the all files and directorys to a different
machine which files were backuped from. I am not sure it will work or
not. The purpose is to move a software from one machine to another.

Any comments will be appreciated

Thanks in advanced

Julie Xu


# This is a shell archive.  Remove anything before this line,
# then unpack it by saving it in a file and typing "sh file".
#
# Wrapped by Openmail for HP9000 <openmail@tuleosm1> on Thu Feb  6 07:38:21 1997
#
# This archive contains:
#       01s7d27
#
# Error checking via wc(1) will be performed.

LANG=""; export LANG
PATH=/bin:/usr/bin:$PATH; export PATH


rm -f /tmp/uud$$
(echo "begin 666 /tmp/uud$$\n#;VL*n#6%@x\n \nend" | uudecode) >/dev/null 2>&1
if [ X"`cat /tmp/uud$$ 2>&1`" = Xok ]
then
        unpacker=uudecode
else
        echo Compiling unpacker for non-ascii files
        pwd=`pwd`; cd /tmp
        cat >unpack$$.c <<'EOF'
#include <stdio.h>
#define C (*p++ - ' ' & 077)
main()
{
        int n;
        char buf[128], *p, a,b;

        scanf("begin %o ", &n);
        gets(buf);

        if (freopen(buf, "w", stdout) == NULL) {
                perror(buf);
                exit(1);
        }

        while (gets(p=buf) && (n=C)) {
                while (n>0) {
                        a = C;
                        if (n-- > 0) putchar(a << 2 | (b=C) >> 4);
                        if (n-- > 0) putchar(b << 4 | (a=C) >> 2);
                        if (n-- > 0) putchar(a << 6 | C);
                }
        }
        exit(0);
}
EOF
        cc -o unpack$$ unpack$$.c
        rm unpack$$.c
        cd $pwd
        unpacker=/tmp/unpack$$
fi
rm -f /tmp/uud$$

echo x - 01s7d27 '[non-ascii]'
$unpacker <<'@eof'
begin 660 01s7d27
M4F5C96EV960Z(&9R;VT@8V]R<&UX,#$@*&-O<G!M># Q+G1D8RYA;6]C;RYCX
M;VTI(&)Y('1U;&5O<VTQ('=I=&@@4TU44 T*"2@Q+C,W+C$P.2XR,"\Q-BXRX
M*2!I9"!!03(P.3 S-S<P-3L@5V5D+" U($9E8B Q.3DW(#(P.C4U.C U("TPX
M-C P#0I296-E:79E9#H@9G)O;2!I;G1E<FQO8VLN86UO8V\N8V]M("AP;W)TX
M86PI(&)Y(&-O<G!M># Q("@U+C O4TU)+30N,"D-"@EI9"!!03$S.#4X.R!7X
M960L(#4@1F5B(#$Y.3<@,C Z-#@Z,#<@*S V,# -"E)E8V5I=F5D.B!F<F]MX
M('9M+FUA<FES="YE9'4@8GD@<&]R=&%L+F%M;V-O+F-O;2!W:71H(%--5% @X
M:60@04$Q,C W-PT*(" H26YT97),;V-K(%--5% @1V%T97=A>2 S+C @9F]RX
M(#QD96-O;VM 04U/0T\N0T]-/BD[#0H@(%=E9"P@-2!&96(@,3DY-R R,#HUX
M-3HR,2 M,#8P, T*4F5C96EV960Z(&9R;VT@5DTN34%225-4+D5$52!B>2!6X
M32Y-05))4U0N1415("A)0DT@5DT@4TU44"!6,E(S*0T*(" @=VET:"!"4TU4X
M4"!I9" R-S$X.R!7960L(# U($9E8B Y-R R,3HU,#HS,2!%4U0-"E)E8V5IX
M=F5D.B!F<F]M(%9-+DU!4DE35"Y%1%4@*$Y*12!O<FEG:6X@3$E35%-%4E9 X
M34%225-4*2!B>2!632Y-05))4U0N1415("A,36%I;"!6,2XR8B\Q+CAB*2!WX
M:71H($)33510(&ED(#8R.38[(%=E9"P@-2!&96(@,3DY-R R,3HU,#HR-R MX
M,#4P, T*4F5C96EV960Z(&9R;VT@5DTN34%225-4+D5$52!B>2!632Y-05))X
M4U0N1415("A,25-44T525B!R96QE87-E(#$N.&,I('=I=&@@3DI%#0H@(" @X
M(" @(" @:60@-3@Q-B!F;W(@041332U,0%9-+DU!4DE35"Y%1%4[(%=E9"P@X
M-2!&96(@,3DY-R R,3HU,#HR,R M,#4P, T*4F5C96EV960Z(&9R;VT@34%2X
M25-4("A.2D4@;W)I9VEN(%--5%! 34%225-4*2!B>2!632Y-05))4U0N1415X
M("A,36%I; T*(" @(" @(" @(%8Q+C)B+S$N.&(I('=I=&@@0E--5% @:60@X
M-C(W.#L@5V5D+" U($9E8B Q.3DW(#(Q.C4P.C(S("TP-3 P#0I296-E:79EX
M9#H@9G)O;2!T<V-C+FUA8V%R=&AU<BYU=W,N1415+D%5(&)Y(%9-+DU!4DE3X
M5"Y%1%4@*$E"32!632!33510(%8R4C,I#0H@(" @(" @(" @=VET:"!40U [X
M(%=E9"P@,#4@1F5B(#DW(#(Q.C4P.C(R($535 T*4F5C96EV960Z(&9R;VT@X
M355324-!+DU!0T%25$A54BY55U,N1415+D%5(&)Y('1S8V,N;6%C87)T:'5RX
M+G5W<RY%1%4N054@*$E"32!630T*(" @(" @(" @(%--5% @5C)2,BD@=VETX
M:"!"4TU44"!I9" [email protected]!4:'4L(# V($9E8B Y-R Q,SHU,3HT,R!%4U0-X
M"E@M36%I;&5R.B!-55-)0R]34"!6,RXQ+C$-"DUE<W-A9V4M260Z(" \,#9&X
M14(Y-RXQ-#DW,#,W."XP,#(U+DU54TE#0$U54TE#02Y-04-!4E1(55(N55=3X
M+D5$52Y!53X-"D1A=&4Z(" @(" @(" @5&AU+" V($9E8B Q.3DW(#$S.C4QX
M.C0Q("LQ,# P#0I297!L>2U4;SH@(D%$4TTZ($1I<W0@4W1O<B!-86YA9V5RX
M(B \041332U,0%9-+DU!4DE35"Y%1%4^#0I396YD97(Z(")!1%--.B!$:7-TX
M(%-T;W(@36%N86=E<B(@/$%$4TTM3$!632Y-05))4U0N1415/@T*1G)O;3H@X
M2G5L:64@6'4@/$-#2EA 355324-!+DU!0T%25$A54BY55U,N1415+D%5/@T*X
M4W5B:F5C=#H@(" @("!(;W<@8V%N($D@<F5S=&]R92!F:6QE<R!T;R!A;F]TX
M:&5R(&AO<W0@86YD(&1I9F9E<F5N="!D:7)R96-T;W)Y#0I4;SH@041332U,X
E0%9-+DU!4DE35"Y%1%4-"D-O;G1E;G0M3&5N9W1H.B R-C@-"CH@        X
                                                             X
end
@eof
set `wc -lwc <01s7d27`
if test $1$2$3 != 272121702
then
        echo ERROR: wc results of 01s7d27 are $* should be 27 212 1702
fi

chmod 660 01s7d27

rm -f /tmp/unpack$$
exit 0
<Prev in Thread] Current Thread [Next in Thread>
  • Re: How can I restore files to another host and different, Dwight E. Cook <=