Commit c0f2228f98

c0f2228f989a0467e250bea7356d0e838455233f

parent: 3e33f15b14

Verified · cmc ci/build: success ci/test: skipped

cmc <hello@cleberg.net> · 2026-09-29 16:14 UTC

wiki: backup --verify needs TMPDIR on disk where /tmp is a small tmpfs

Ref #259

Layout: unified · split

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