Recommended rsync tutorials?

Joshua Judson Rosen rozzin at geekspace.com
Tue Oct 19 10:17:56 EDT 2010


Tom Buskey <tom at buskey.name> writes:
> On Mon, Oct 18, 2010 at 8:28 PM, Bruce Labitt
> <bruce.labitt at myfairpoint.net>wrote:
> >
> >  I'm looking to use rsync on a cron job to do some
> > 'backup'.  I've read man rsync and a few 'tutorials'.  It
> > looks not too hard - this worries me.  :)
> >
> > Anyone have a good/favorite tutorial on rsync that talks
> > about how to do this over ssh and avoids common pitfalls?
> > (like unmounted nfs...) lmgtfy, would not be too helpful.
> > Done that, checked out a few of them, looking for something
> > relatively understandable...
> 
> Try it manually 1st.  Put it into a script that you call in cron.
> 
> You can setup ssh keys so you don't have passwords.
> 
> Usually it's rsync -av source dest:dest-dir
> 
> If you delete files on the source and want them deleted on the dest, use
> --delete

And don't forget --dry-run to see what you're going to do before you do it,
and --one-file-system to skip over (active) mountpoints.

-- 
"Don't be afraid to ask (λf.((λx.xx) (λr.f(rr))))."



More information about the gnhlug-discuss mailing list