cp --recursive

Travis Low tlow at knowledgeplanet.com
Wed Dec 29 16:54:48 GMT 1999

Pedro Fradique da Silva wrote:
> I'm trying to copy several files froman NT4 to Linux using
> "smbmount //winnt/dados /mnt/tmp -o username=foo,password=bar"
> and then "cp -R *.mdb /home".
> This is one of my backup steps.
> The problem is it won't go recursive. It just copies the files on the
> first dir.

Do you have directories named "*.mdb" ?  If not, then the cp is working
correctly.  Sounds like you want something more like:

  find /mnt/tmp -name '*.mdb' -exec cp {} /home

Travis Low -- tlow at knowledgeplanet.com
11490 Commerce Park Drive, Suite 400, Reston VA 20191-1523
+1 703 262 6616 (direct)  +1 703 716 0237 (fax)
"If you do that, Griffin will really freak off his doodle!"  --Tiernan Low

More information about the samba mailing list