Commit c0f2228f98
Verified · cmc ci/build: success ci/test: skipped
Layout: unified · split
.gitbay/wiki/Admin.org +11
| @@ -829,6 +829,17 @@ gitbayd admin restore-drill /var/backups/gitbay/gitbay-20260927-090000.tar.gz -- | |||
| 829 | gitbayd admin restore-drill <archive>.tar.gz.age --identity backup-identity.txt --into /srv/drill | 829 | gitbayd admin restore-drill <archive>.tar.gz.age --identity backup-identity.txt --into /srv/drill |
| 830 | #+end_src | 830 | #+end_src |
| 831 | 831 | ||
| 832 | =admin backup --verify= extracts the archive under =$TMPDIR=. A host | ||
| 833 | whose =/tmp= is a tmpfs smaller than a full archive (bay1's is 3.9 GB | ||
| 834 | of memory) fails with "no space left on device"; point =TMPDIR= at a | ||
| 835 | directory on disk that the backup's user owns: | ||
| 836 | |||
| 837 | #+begin_src sh | ||
| 838 | install -d -o gitbay -g gitbay -m 700 /var/backups/gitbay/verify-tmp | ||
| 839 | cd /var/backups/gitbay | ||
| 840 | sudo -u gitbay env TMPDIR=/var/backups/gitbay/verify-tmp gitbayd admin backup --verify <archive> | ||
| 841 | #+end_src | ||
| 842 | |||
| 832 | What to restore, and from where: | 843 | What to restore, and from where: |
| 833 | 844 | ||
| 834 | | Item | Source | Path on the drill host | | 845 | | Item | Source | Path on the drill host | |