copy directory structure

Mario Lobo mlobo at digiart.art.br
Wed Dec 21 15:22:59 PST 2005


use this:

tar -vpcf - -C source-dir . | tar xpf - -C destination-dir

destination-dir must exist. 
This will copy everything inside source-dir to destination-dir.

-- 
   //|  //||
  // | // ||
-//--//--|| ARIO LOBO
//  //    ||
---------------------------------
mlobo at digiart.art.br
http://www.digiart.art.br/MarioLobo/
http://www.mallavoodoo.com.br

> Ashok Shrestha wrote:
> > Do you know how to copy just a directory structure (not the files inside it)?
> 
> This is better suited for freebsd-questions@, but I'll give you a hint, the 
> answer should probably involve find. :)
> 
> Good luck,
> 
> Doug
> 
> -- 
> 
>      This .signature sanitized for your protection
> 
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"





More information about the freebsd-hackers mailing list