Copying a directory hierarchy

Alexander Sendzimir (owner) alex at mactutor.biz
Wed Dec 22 22:09:40 PST 2004


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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe at freebsd.org"
>
>

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



More information about the freebsd-questions mailing list