[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-developers] Backups - Newbie



I am a bit confused with this tar business... I do a tar on a particular
directory:

[root@ns1 /home]# tar -cpzf myfile.bak mydir

The first thing I tried was to copy the archive and restore it someplace
else:

[root@ns1 admin]# tar -xzvf myfile.bak

This succeeded, but when I tried to "rm mydir" without the -R it worked and
did not produce an error. I found this a little odd, but things get wierder.

I then went back to the original directory and removed just one file from
it. Then I restored from the backup (in the directory where the original
directory was located):

[root@ns1 /home]# tar -xzvf myfile.bak

The deleted file was not restored. I then copied the backup someplace else
and tried again to restore in a completely different directory:

[root@ns1 admin]# tar -xzvf myfile.bak

And still, my file was missing from the archive. What am I doing wrong
here??

Kevin

----- Original Message -----
From: "Lennie Core" <lcore@xxxxxxxx>
To: <cobalt-developers@xxxxxxxxxxxxxxx>
Sent: Tuesday, August 15, 2000 11:49 PM
Subject: Re: [cobalt-developers] Backups - Newbie


> Dear H.P.
>
> Thank you so very much for your clear explination and sample.
>
> Actually, I wish to back up my Raq3 Complete ! So as not to loose
> all of the long hours of installing MySql and all of the other usual
> bells and gizmos.
>
> So Should I backup the entire OS from root or / ?  If so, another
> example would be very much appreciated.  Although, I do believe I
> have at least 1/2 of one brain cell remaining :)
>
> Thanks again, Lennie
>
>
> Lennie Core schrieb:
> >
> > Since Im not a unix/linux command line person, can you give me
> > the command to use via telnet login of su to make it happen ?
> >
> > first drive is "home"  Second drive is "drive2"  Your assistance will
> > be mucho appreciated..  and would that tar file be in the root of the
> > second drive ?
>
> i don`t remember what you want to backup ?
>
> to backup for example /, /var/ and /home/ to /drive2/tmp/disk1.bak, type
>
> tar -cpzf /drive2/tmp/disk1.bak / /home /var
>            ^^ target             ^ ^     ^source
>
> -c : create
> -p : preserve permissions (!)
> -z : compress the file
> -f : archive filename
>
> you might have a look at afio, better than tar as it can read even
> archives when parts of it are messed up.
>
> regards
>
> --
>
> H. P.  Stroebel, Germany
>
> CGI-FAQ for Raq-Newbies :
> http://users.iol.it/hpstr/
>
> A problem to some is a 'feature' to others.
>
>
> _______________________________________________
> cobalt-developers mailing list
> cobalt-developers@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-developers
>
> ---------------------------------------------------
>             Lennie Core, LCPCC
>        Coreave.com, Design & Hosting
>                757-442-2909
>
>
> _______________________________________________
> cobalt-developers mailing list
> cobalt-developers@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-developers
>