github   ➡   rsync.net

 

It's easy to backup a github project (public or private) to your rsync.net account.

Public or private, your github repositories can be stored immutably inside your rsync.net account.

 

Public Repositories

 

If you want to clone something from github into an rsync.net account, the syntax is:

 

ssh user@rsync.net "git clone --mirror git://github.com/LabAdvComp/UDR.git udr"

 

This clones the LabAdvComp/UDR repository into the directory "udr" in the root of your rsync.net account.

 

rsync.net supports cloning LFS assets:

 

ssh user@rsync.net "git clone --mirror https://github.com/concourse/lfs-test-repo lfs-test-repo"

 

Private Repositories

 

rsync.net supports credential helpers, URL embedded passwords and git tokens.

 

Here is an example of invoking a credential helper and configuring a persistent credential store:

 

ssh user@rsync.net "git config credential.helper store"
ssh user@rsync.net "git clone --mirror https://github.com/ytdl-org/youtube-dl.git ytdl_backup"
Username:
Password:
 
... several days later ...
 
ssh user@rsync.net "git clone --mirror https://github.com/ytdl-org/youtube-dl.git ytdl_backup"
 
... your credentials are used automatically ...

 

Here is an example of using a password embedded in your URL:

 

ssh user@rsync.net "git clone --mirror https://username:password@github.com/ytdl-org/youtube-dl.git ytdl_backup"

 

Here is an example of using a git token embedded in your URL:

 

ssh user@rsync.net "git clone --mirror https://TOKEN@github.com/ytdl-org/youtube-dl.git ytdl_backup"

 

... and there is a nice HOWTO for creating and using tokens here.

 

General git Use

 

There are more things you can do with git inside an rsync.net account and they are outlined in this blog post.

 

Further References and Information

 

- rsync.net Support Overview Page

- rsync.net SSH / SSL Server Fingerprints

- Generating and using ssh keys for automated backups

- Remote commands you may run over SSH

- rsync.net Physical delivery guidelines

- rsync.net Warrant Canary

- rsync.net PGP/GPG Public Key

 

           

 

 

Click here for Simple Pricing - Or call 619-819-9156 or email info@rsync.net for more information.