Commit df26c463 authored by nimrod's avatar nimrod
Browse files

docs: Document the backup and restore procedures.

parent 7c1f84e5
Loading
Loading
Loading
Loading

backup/README.md

0 → 100644
+14 −0
Original line number Diff line number Diff line
# 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`).