Improve nginx configs
这个提交包含在:
@@ -27,3 +27,17 @@ podman exec -it postgres psql -U postgres -c "GRANT ALL privileges ON DATABASE [
|
||||
podman exec -it postgres psql -U postgres -d [nome_progetto] -c "GRANT CREATE ON SCHEMA public TO [nome_progetto];"
|
||||
```
|
||||
|
||||
----
|
||||
|
||||
# Backup e Restore
|
||||
|
||||
Backup (pg_dump) del database su file sull'host:
|
||||
```bash
|
||||
podman exec -e PGPASSWORD="[password_db_progetto]" postgres pg_dump -U [nome_progetto] -d [nome_progetto] > backup.sql
|
||||
```
|
||||
|
||||
Restore da file sull'host nel database:
|
||||
```bash
|
||||
podman exec -i -e PGPASSWORD="[password_db_progetto]" postgres psql -U [nome_progetto] -d [nome_progetto] < backup.sql
|
||||
```
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户