magnusandClaude Opus 4.6 ffdd8bb4b2 Fix backup permission denied by using docker cp instead of direct mount write
The git user inside the gitea container couldn't write to the NAS-mounted
/tmp/backup directory. Now dumps to /tmp first, then uses docker cp to
extract the file to the sidecar's backup directory.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 08:22:09 +01:00
2026-02-21 10:14:07 +01:00

Gitea

Self-hosted Gitea instance running on Docker Compose with a remote PostgreSQL database and automated daily backups.

Services

  • gitea — Web UI on port 3008, SSH on port 2222
  • gitea-backup — Alpine sidecar running a daily cron job at 2 AM

Setup

docker-compose up -d

Backups

Backups run automatically at 2 AM daily, writing gitea-dump-*.zip files to /mnt/nasen/backup/gitea with 7-day retention.

Run a manual backup:

docker exec gitea-backup /usr/local/bin/backup.sh

Check backup logs:

docker exec gitea-backup cat /var/log/backup.log
S
Description
No description provided
Readme
33 KiB
Languages
Shell 100%