ESC

Git

All Homelab AI & Agents Trading Thoughts
Migrate gitea data from on instance to another

Migrate gitea data from on instance to another

Migrating Gitea from one instance to another is essentially a backup and restore operation. Since Gitea stores its data in two main places—the database and the filesystem—the process involves moving both while keeping them in sync.

The most reliable method is using Gitea’s built-in dump command, which packages everything into a single zip file.


This method is the cleanest because it ensures all metadata (issues, pull requests, users) is captured along with the code.

How I use and installed Gitea in my homelab

How I use and installed Gitea in my homelab

Initial Setup

NB: Create Initial Repo and Change Repo Name


cd /home/<user>/<project>
git config --global user.name "Your Name"
git config --global user.email "[email protected]" 
git init
git remote add origin https://<user>:YOUR_GITEA_TOKEN@gitea.<domain>.com/<user>/traefik-n8n.git
git add .
git commit -m "Initial commit"
git branch -M main
git push -u origin main

Updates

NB: Change to app directory

cd /home/<user>/WHAT
git add .
git commit -m "Update files"
git push -u origin main

1. Install Git

sudo apt update && sudo apt install git -y