[Discuss] mirroring with rsync
Andy Davidson
andy at nosignal.org
Wed Jun 7 17:04:50 PDT 2006
On Sat, Jun 03, 2006 at 11:20:11AM -0700, Alan W. Irwin wrote:
> SourcForge no longer offer tarball backups of project CVS repositories.
> Instead, the new backup procedure involves rsync. Here is the syntax they
> recommend for (say) the plplot project:
>
> rsync -av rsync://plplot.cvs.sourceforge.net/cvsroot/plplot/* .
> From reading the man page that doesn't seem quite right to me. First as a
> matter of style I name the destination directory a specific name rather than
> just using the current directory.
(As there were no other replies) - there's nothing wrong with the
example - I often want to copy something somewhere else to the directory
I am in now. I would also add -P to give me partial files (i.e. resume
midway through semi-transferred files) and a progress meter, and -v for
verbose output if I was running interactively. Give it a try.
You can also specify "-e ssh" if the remote side supports login via ssh
- which keeys your details lovely and private. the -e means 'this
shell', so if ssh is running on a diferent port, it is legal to say :
... -e "SSH -P 222"
> Also, I want to do more than just
> copy; I want to mirror so that deletes of files in the SF repo get reflected
> in the local plplot_mirror tree. Thus, here is the final command I
> came up with:
> rsync -av --delete \
> rsync://plplot.cvs.sourceforge.net/cvsroot/plplot/* plplot
> to be run once per week or so followed by
I would start with an empty local directory so that the --delete was not
needed personally.
>From your mail, it would sound to me like you understand everything you
need to in order to get your backups working though. I tend to use
rsync rather than scp for copies because rsync has had resumes for
longer .. but they are similar in interface behaviour, really.
-a
More information about the Discuss
mailing list