💾 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

View Raw

More Information

⬅️ Previous capture (2023-09-08)

🚧 View Differences

-=-=-=-=-=-=-

Forgejo

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

Install

read the "Installation from binary guide" on the Forgejo website.

Backup

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

forgejo backup tool

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" 🦺

Upgrade

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.

download the latest release

Download

VERSION=

wget https://codeberg.org/forgejo/forgejo/releases/download/v$VERSION/forgejo-$VERSION-linux-amd64

Verify GPG signature

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

Install

chmod +x forgejo-$VERSION-linux-amd64
install -m 755 forgejo-$VERSION-linux-amd64 /usr/local/bin/forgejo
systemctl restart forgejo

/pictures/dividers/pixel-flowers.gif

talon.computer

CC BY-NC 4.0