Skip to content

Instantly share code, notes, and snippets.

@swuecho
Created August 19, 2020 05:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save swuecho/841787c4fa2bfe04e6e088a87539da3d to your computer and use it in GitHub Desktop.
Save swuecho/841787c4fa2bfe04e6e088a87539da3d to your computer and use it in GitHub Desktop.
gitea postgres docker db restore
mkdir gitea
cp docker-compose.yml gitea/
cp gitea-dump-1597294525.zip gitea/
cd gitea
unzip gitea-dump-1597294525.zip
unzip gitea-repo.zip
mkdir gitea
mkdir -p gitea/git
mv repositories gitea/git/
mv data gitea/gitea
# psotgres db restore
docker-compose up db
cat gitea-db.sql | docker exec -i gitea_db_1 psql -U gitea -d gitea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment