Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Sep 2000 12:48:39 -0400
From:      "Passki, Jonathan P" <jpasski@kpmg.com>
To:        "'martian@t-online.de'" <martian@t-online.de>, questions@freebsd.org
Subject:   RE: how to copy directory and contents?
Message-ID:  <7799D023E51ED311BFB50008C75DD7B40223B2D2@uschiexc05.kweb.us.kpmg.com>

next in thread | raw e-mail | index | archive | help
Or I find doing this very common command helpful on large data moves:

cd /<source_dir_and_all_below_it>
tar cf - . | (cd /<remote_dir>; tar xf -)

It'll may beat up on the processor and memory, and if it doesn't swap =
too
much, I think it would transfer less data in the move because of the
tarring.  This saves wear and tear on your drives and disk system.

Jon

> -----Original Message-----
> From: martian@t-online.de [mailto:martian@t-online.de]
> Sent: Friday, September 22, 2000 11:44
> To: questions@FreeBSD.ORG
> Subject: Re: how to copy directory and contents?
>=20
>=20
> On Thu, Sep 21, 2000 at 03:18:20PM -0700, Alfred Perlstein wrote:
>=20
> > * Murray <mgd@brutus.converging.net> [000921 15:01] wrote:
> > > How do you copy a directory? I have used cp to copy=20
> files, but I am
> > > not sure about copying a directory and all the files within.=20
> >=20
> > please read the manual page for cp.
> >=20
> > "man cp"
> >=20
> > --=20
> > -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org]
> > "I have the heart of a child; I keep it in a jar on my desk."
>=20
> or try
>=20
> cp -r sourcedir targetdir
>=20
> --=20
> Martin M=F6ller                 Email: martian [at] t-online.de
>=20
> PhiCom Software * Falkenried 60 * 20251 Hamburg * Deutschland
> Tel.: +49 (40) 4232 6801 * Fax: +49 (40) 4232 6811  [Germany]
> Mobile: 0172 274 34 33 * http://home.t-online.de/home/martian
>=20
>=20
>=20
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>=20
*****************************************************************************
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. 

If you are not the intended recipient, any disclosure, copying, distribution
or any action taken or omitted to be taken in reliance on it, is prohibited
and may be unlawful. When addressed to our clients any opinions or advice
contained in this email are subject to the terms and conditions expressed in
the governing KPMG client engagement letter.         
*****************************************************************************


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7799D023E51ED311BFB50008C75DD7B40223B2D2>