Menu

rsync Backups

Using rsync for backups

SourceForge.net provides read-only rsync access to several service offerings to enable self-service backups of project data. rsync is the preferred tool for making backups since it allows for great flexibility, supports the resume of failed transfers, and is optimized for efficient data transfer.

rsync clients are available for all modern Operating System platforms. Linux, BSD, and Mac OS X users typically already have rsync installed since it is generally included with the Operating System. MS Windows users can obtain rsync from the Cygwin project.

Project web and developer web

Our file management service is available to project developers to read-write rsync access to project web and developer web content.

SourceForge Project SCMs

SCM repository contents may be accessed (read-only) by the project team and end-users using rsync.

rsync may be used to copy an entire project repository as follows:

$ rsync -av SCM.code.sf.net::p/PROJECTNAME/REPOSITORY[.git] .
  • Replace SCM, with the scm type (svn, git, or hg)
  • Replace PROJECTNAME with the project's UNIX name
  • Replace REPOSITORY with the repository's url path (default is 'code')
  • If (and only if) you're backing a git repo, add .git to the path

For example, if I wanted to rsync the git repository for the allura project, with the repository 'git', I'd use the following command:

$ rsync -av git.code.sf.net::p/allura/git.git .

Classic Project SCMs

Instructions for using rsync with classic projects has been removed from this page to avoid confusion. However, if you still need this, you may consult a previous revision of this page.


Related

Documentation: Table of Contents - SourceForge.net Documentation