JenkinsConfig / backups /
@Jenkins Jenkins authored on 2 Jan 2021
..
Code.git.bundle daily backup 6 years ago
Dockerfiles.git.bundle daily backup 5 years ago
Import.git.bundle daily backup 5 years ago
JenkinsConfig.git.bundle daily backup 6 years ago
README.md daily backup 6 years ago
WickedDocs.git.bundle daily backup 6 years ago
backup.sh do backups in to a temp folder to ignore 5 years ago
invertedlogic.git.bundle daily backup 6 years ago
jryland-gpg2-public.key.gpg daily backup 6 years ago
jryland-gpg2-secret.key.gpg daily backup 6 years ago
restore.sh daily backup 6 years ago
setup.sh daily backup 6 years ago
README.md

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.