Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Dec 2004 01:09:41 -0500
From:      Alexander Sendzimir (owner) <alex@mactutor.biz>
To:        Joseph <freebsd-questions@chubbo.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Copying a directory hierarchy
Message-ID:  <3BBEB351-54A9-11D9-8FFD-000D9347C178@mactutor.biz>
In-Reply-To: <1103778966.41ca5496059b9@mail.chubbo.net>
References:  <1103778966.41ca5496059b9@mail.chubbo.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Another variation:

tar cf - -C /source/path directory | tar xf - -C /destination/path

On Dec 23, 2004, at 12:16 AM, Joseph wrote:

>
>
>>>>  How does on copy a complete directory hierarchy, including any 
>>>> hidden
>>>>  files?
>
> cd /path
> tar cf - . | (cd /other/path; tar -xf -)
>
> works like a charm.
>
> joe
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe@freebsd.org"
>
>

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  Alexander Sendzimir (owner)                    802 863 5502
  MacTutor: Apple Mac OS X Consulting       info@mactutor.biz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3BBEB351-54A9-11D9-8FFD-000D9347C178>