Hello,

Just wanted to let everyone know that I figured it out.  For some reason,
when I take the single quotes away from the include and exclude options,
things seem to work as one would expect.

Thanks,
Dan


----- Forwarded by Daniel J Botz/PGG/Cummins on 06/18/01 08:10 -----
                                                                                       
                             
                    Daniel J Botz                                                      
                             
                                         To:     Tim Potter <[EMAIL PROTECTED]>         
                             
                    06/18/01 07:35       cc:     [EMAIL PROTECTED]                 
                             
                                         Subject:     Re: RSync directory structure 
only(Document link: Daniel J    
                                         Botz)                                         
                             
                                                                                       
                             



Hello,

Thanks for the quick response Tim!!

I tried using the excludes you mentioned but it doesn't seem to work.
Every file still gets copied.

I also tried to have the remote machine execute a command to generate a
file list but this didn't seem to work either:

rsync -av server:`find /dir1/dir2 -type d` dest

Anybody have any other ideas?

Thanks!
Dan



                                                                                       
                             
                    Tim Potter                                                         
                             
                    <tpot@valinux        To:     [EMAIL PROTECTED]             
                             
                    .com>                cc:     [EMAIL PROTECTED]                 
                             
                                         Subject:     Re: RSync directory structure 
only                            
                    06/17/01                                                           
                             
                    18:11                                                              
                             
                                                                                       
                             
                                                                                       
                             




[EMAIL PROTECTED] writes:

> Is there a way to use rsync to replicate a directory structure only and
not
> the files in the directory structure?

Try this:

rsync -av --include '*/' --exclude '*' source-dir dest-dir


Tim.






Reply via email to