[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] Copying Files
- Subject: RE: [cobalt-users] Copying Files
- From: "Edward R. Milstein" <eddie@xxxxxxxxxxx>
- Date: Wed Apr 17 20:37:03 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
FYI. The example is missing the pipe symbols..
mkdir /home/tmp/lib_backup
cd /usr/lib
tar -cf - * | (cd /home/tmp/lib_backup; tar -xvf -)
^
Also, using a dot instead of the wild card might be better, especially
for very large directories...
-ed-
> -----Original Message-----
> From: cobalt-users-admin@xxxxxxxxxxxxxxx [mailto:cobalt-users-
> admin@xxxxxxxxxxxxxxx] On Behalf Of Will DeHaan
> Sent: Wednesday, April 17, 2002 12:04 PM
> To: cobalt-users@xxxxxxxxxxxxxxx
> Subject: Re: [cobalt-users] Copying Files
>
> Jay Fesco wrote:
> >
> > Hi All.
> >
> > I need to copy a files to my /usr/lib directory from my local
machine.
> >
> > Whats the best way to do this?
> >
> > Regards.
> >
> > Mark
>
> Don't use "cp" as it will not preserve symbolic links and fill your
disk
> unnecessarily.
>
> I prefer to use tar to copy directory trees.
>
> As in...
>
> mkdir /home/tmp/lib_backup
> cd /usr/lib
> tar -cf - * (cd /home/tmp/lib_backup; tar -xvf -)
>
> > Get Webmin (www.webmin.com).
>
> No thanks, I prefer the Cobalt admin UI.
>
>
> -- Will
>
> --
> Will DeHaan
> Software Engineer will.dehaan@xxxxxxx
> Sun Cobalt Server Appliances. Sun Microsystems, Inc.
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users