💾 Archived View for talon.computer › wiki › Forgejo captured on 2023-09-28 at 15:45:46. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-09-08)
-=-=-=-=-=-=-
Last updated: 2023-09-10 00:00:00
Forked from gitea by Codeberg after a for-profit takeover of gitea...
https://blog.codeberg.org/codeberg-launches-forgejo.html
read the "Installation from binary guide" on the Forgejo website.
Forgejo has a
Take a snapshot of em 📸:
TIMESTAMP=$(date -Iminutes) tar -czvf $TIMESTAMP-forgejo-data.tar.gz -C /var/lib/forgejo . pg_dump forgejo > $TIMESTAMP-forgejo.dump cp /etc/forgejo/app.ini $TIMESTAMP-app.ini.bk
According to the Forgejo docs this command should do the above and put everything in a zip file:
forgejo dump
BUT BEWARE!!
Although the zip file created by forgejo dump contains a copy of the database it has serious long standing open bugs that may introduce problems when re-injecting the SQL dump in a new database.
And then move those snapshots off the production disk so they are "backed up" 🦺
forgejo manager flush-queues --config /etc/forgejo/app.ini
Docs say to pause all the queues via "Site administration" but all I see is /admin/monitor/queue and all the queues there currently have nothing in them. So maybe if there was something I could pause them.
VERSION= wget https://codeberg.org/forgejo/forgejo/releases/download/v$VERSION/forgejo-$VERSION-linux-amd64
gpg --keyserver keys.openpgp.org --recv EB114F5E6C0DC2BCDD183550A4B61A2DC5923710 wget https://codeberg.org/forgejo/forgejo/releases/download/v$VERSION/forgejo-$VERSION-linux-amd64.asc gpg --verify forgejo-$VERSION-linux-amd64.asc forgejo-$VERSION-linux-amd64
chmod +x forgejo-$VERSION-linux-amd64 install -m 755 forgejo-$VERSION-linux-amd64 /usr/local/bin/forgejo systemctl restart forgejo