## Complete Guide: Gitea Setup & Proxmox GitOps (Backup & Restore) and Step-by-Step Guide: Automated Gitea S3 Backup to TrueNAS SCALE (RustFS)## Introduction: Hello fellow homelabbers, I hope this guide proves useful to you. If not, consider it personal documentation for my future self to look back on how, what, and why things were configured this way. I designed this setup because I operate a Proxmox cluster alongside a standalone Proxmox server. The cluster runs a Gitea VM, while the standalone server hosts RustFS as an app on TrueNAS SCALE. Beyond standard VM and LXC backups, backing up the Proxmox hosts themselves is critical. This specific architecture provides a highly resilient strategy for that scenario. Why I use gitea (lightweight)! Let's dive straight into the deployment. Part 1: Gitea Installation & Configuration 1. Create the LXC Container/ or standalone linux laptop 1. Open the Proxmox Web UI and click Create CT. 2. General: Check the Unprivileged container box. Name the container (e.g., gitea) and set a secure root password. 3. Template: Select a clean Debian 12 or 13 template. 4. Resources: Allocate a minimum of 10 GB to 20 GB of disk space, 1–2 CPU cores, and 1024 MB RAM. 5. Network: Attach to vmbr0 (typically), and assign either a static IP address or configure DHCP. 6. Boot up the container. 2. Prepare the System & Download Gitea Binary Log in to the Gitea container console as root and execute the following commands: bash # Update the system and install base packages apt update && apt upgrade -y apt install git sqlite3 gnupg2 -y # Create the Gitea system user and home directory manually adduser --system --shell /bin/bash --gecos 'Git Version Control' --group --disabled-password git mkdir -p /home/git/.ssh chown -R git:git /home/git chmod 700 /home/git/.ssh # Download the Gitea binary (Version 1.27.0) wget -O gitea https://dl.gitea.com/gitea/1.27.0/gitea-1.27.0-linux-amd64