[SUMMARY] Getting RSYNC to transfer .* files

From: David Foster <foster_at_dim.ucsd.edu>
Date: Tue Sep 25 2001 - 19:55:45 EDT
Moral of the story: Don't post to Sun-Managers when you are
in a hurry!

I needed to make RSYNC recursively transfer *all* files, including
hidden files. The solution is as simple as:

	rsync -a . rhost:/dir

Seems everyone knew this but me. One remaining question, where the
heck is this documented?

I was trying to use "rsync -a .* * rhost:/dir", but it seemed like
it was hanging. Then I discovered that it was dutifully copying ..,
which in my case was a huge filesystem. Duh.

Sorry for the stupid question.

Dave Foster

Thanks to:

Kevin M. Korb
Hendrik Visage
ed.rolison
Darren Dunham
matthew.hannigan
Jay Lessert
Martynas Buozis


> 
> I have an urgent need to get something working today, can someone
> please tell me how to get RSYNC to transfer '.*' files recursively?
> 
> I haven't gotten any response from Rsync's "Faq-O-Matic" site.
> 
> I know from the Rsync FAQ that
> 
> 	rsync -a .* * rhost:/dir
> 	
> will transfer everything in that directory, but it doesn't
> seem to work recursively. In fact, on my Solaris 2.6 system
> specifying .* (even by itself) causes the program to hang, never
> transfering anything.
> 
> Dave
> 
> 
> 
>   =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>    David Foster    National Center for Microscopy and Imaging Research
>     Programmer/Analyst     University of California, San Diego
>     dfoster@ucsd.edu       Department of Neuroscience, Mail 0608
>     (858) 534-7968         http://ncmir.ucsd.edu/
>   =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> 
>    "The reasonable man adapts himself to the world; the unreasonable one
>    persists in trying to adapt the world to himself.  Therefore, all progress
>    depends on the unreasonable."   -- George Bernard Shaw
> 
> _______________________________________________
> sunmanagers mailing list
> sunmanagers@sunmanagers.org
> http://www.sunmanagers.org/mailman/listinfo/sunmanagers


   << All opinions expressed are mine, not the University's >>

  =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
   David Foster    National Center for Microscopy and Imaging Research
    Programmer/Analyst     University of California, San Diego
    dfoster@ucsd.edu       Department of Neuroscience, Mail 0608
    (858) 534-7968         http://ncmir.ucsd.edu/
  =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

   "The reasonable man adapts himself to the world; the unreasonable one
   persists in trying to adapt the world to himself.  Therefore, all progress
   depends on the unreasonable."   -- George Bernard Shaw

_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Wed Sep 26 17:45:13 2001

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:26 EST