This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user