[Novalug] rsync was: [OT] porn site lure tactic

Bryan J. Smith thebs413 at yahoo.com
Sun Jan 17 13:36:14 EST 2010


On Sun, 1/17/10, Bonnie Dalzell <bdalzell at qis.net> wrote:
> What I was having trouble finding was an rsync tutorial
> that was more 
> useful to a beginner than the man pages yet was thorough
> enough to tell me 
> how to exclude certain subdirecories and not follow links.
> Most of them 
> tell you how to exclude certain files based on pattern
> matching but not 
> entire folders/subdirectories.

It's best to think of rsync as the same as copy (cp).

  rsync src dst

On a local system, it's as simple as:  

  rsync -a src dst

Where "-a" preserves all sorts of attributes (instead of
having to call out the individual options, some of which
match cp and some do not).

Add a "v" to the "-a" (-av) for verbose output.

When you copy between systems (e.g., via ssh), there is
just a little, added work.  But the src/dst fields stay
the same.





More information about the Novalug mailing list