Re: Backing up directories RH 7.3

Página superior
Adjuntos:
Obtener este mensaje como un correo
+ (text/plain)
Eliminar este mensaje
Responder a este mensaje
Autor: Dennis Kibbe
Fecha:  
A: plug-discuss
Asunto: Re: Backing up directories RH 7.3
On Mon, 27 Sep 2004 21:01:54 -0700 (PDT)
"Jeremy C. Reed" <> wrote:

> On Mon, 27 Sep 2004, todd hewett wrote:
>
> > I am trying to back up an entire directory, I would like to preserve owners
> > groups and permissions.
> >
> > So lets say I am trying to back up a dir /root/myscripts/
> >
> > There are sub-directories also.
>
> The standard Unix way is to use tar. The tar command historically was for
> creating tape archives but is now commonly used for creating archive
> files.
>
> tar cf myscripts.tar /root/myscripts
>
> c is for create
> f is to select the filename to create (myscripts.tar)
>
> You could use "cvf" to be verbose and list the filenames as added to
> archive.
>
> And use "cvzf myscripts.tar.gz" to compress it (using gzip format).
>
> Then later you can extract it somewhere else with:
>
> tar xvzf myscripts.tar.gz
>
> As another email mentioned rsync, there are numerous ways it can be done.
> I normally use tar or cpio (even for remote transferring) or rsync.
>
>
> Jeremy C. Reed


And here's yet another way.

If mc (Midnight Commander) is installed (and it is in Slackware), it can mirror the contents of one directory to another. See http://www.linuxgazette.com/issue23/wkndmech_dec97/mc_article.html for a good intro to this versatile program.

Dennisk
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss