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.

Code Repos

Projects' code 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 .

Related

Documentation: Table of Contents - SourceForge.net Documentation

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.