diff --git a/backup/README.md b/backup/README.md new file mode 100644 index 0000000000000000000000000000000000000000..5759ba9dcdd066713db2d2a5380a95ad602f7c61 --- /dev/null +++ b/backup/README.md @@ -0,0 +1,14 @@ +# Backup and restore + +## Backup + +Backups are done on the host01 machine and are scheduled via GitLab CI/CD. +They're stored under `/var/backups/registry`. + +## Restore + +Because uploads are only allowed from the machine that hosts the registry +(ns4), the restore also needs to done there. So first step is copying the +backup directory to ns4 (`scp -r host01.shore.co.il:/var/backups/registry ns4.shore.co.il:/home/nimrod/` should do the trick). Afterwards build the image +on the host (`docker --context ns4 build -t reg-backup .`) and run the restore +script with the directory mounted as a volume (`docker --context ns4 run --rm -v /home/nimrod/registry/:/registry:ro reg-backup restore /registry registry.shore.co.il`).