
README
======

Setup Instructions
------------------

Run the ./setup.sh script to initialize the backup system. This is interactive
and needed to construct the secret keys needed for the encryption.


Backup Instructions
-------------------

Run the ./backup.sh script which will find the repos, bundle, encrypt and then
copy them to the server.

This is designed to be non-interactive so that it can be run from a jenkins
job or cron-job etc.


Restore Instructions
--------------------

This is interactive and requires entering passwords to decrpyt the backups.

On a local machine run the following:

```
   scp "jryland@invertedlogic.com:/home/jryland/backups/restore.sh" ./
```

This copies the restore script to rebuild the repos.
Now run the script.

```
  ./restore.sh
```

The restored repos are in the restored directory. Manually import these
back in to the git repos.


