wiki: backup --verify needs TMPDIR on disk !541

merged merged by cmc on 2026-09-29 16:19 UTC · krz/gitbay:admin-verify-tmpdir into main

1 file changed, +11 −0

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 |