Backing up gitea docker
Page content
Backing up Gitea docker
On the docker host shell into the gitea container. On mine it’s named docker_gitea:
docker exec -it docker_gitea /bin/bash
su git
# Note: according to gitea docs, don't read in git's environment by running `su - git`
cd /data/git
/app/gitea/gitea dump -c /data/gitea/conf/app.ini
Back on the docker host copy the file out of the container.
docker cp $(docker ps -qf "name=docker_gitea_1"):/data/git/gitea-dump-1545700358.zip .