eabates
eabates

Reputation: 898

backing up Git repository to S3 with SSH

I am trying to determine best practices for backing up a Git repo to S3 with SSH on OS X. Can anyone recommend software for doing so?

Upvotes: 1

Views: 593

Answers (1)

Krishna Srinivas
Krishna Srinivas

Reputation: 1700

You can use mc tool for this:

mc mirror /path/gitrepo https://<bucket>.s3.amazonaws.com/gitrepo

If you make changes to the local repository you can run the mirror command again so that it can sync the changed files to S3.

Upvotes: 4

Related Questions