From f9e8eb2133d37b839bd66ff179dcb5fbda982b99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Sun, 2 Mar 2025 00:25:25 +0000 Subject: [PATCH] modified: README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index aee0998..eef98e7 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,12 @@ _Source - https://docs.gitea.io/en-us/backup-and-restore/_ # bash -c "x" -> execute bash with command x /usr/bin/docker exec -u git -w /tmp/backups gitea bash -c "/app/gitea/gitea dump" + + + +#export to import to postgres (migrating from mysql to postgres) +sudo docker exec -u git -it -w /tmp gitea bash -c '/app/gitea/gitea dump -d postgres' + ``` ## nginx