📖 DOC: Added Volume /var/run/docker.sock

This commit is contained in:
Yuri-Lima
2023-08-28 10:49:34 +00:00
parent 0e068c84e6
commit 719387d21e
3 changed files with 24 additions and 1 deletions

View File

@@ -59,4 +59,19 @@ docker exec -i -e PGPASSWORD=Na21907722 postgresDB pg_dump -U postgres phoenix
docker exec -i postgresDB /var/lib/postgresql/data/pg_dump -U postgres phoenix > postgres-backup.sql
docker exec -i postgresDB /var/lib/postgresql/data/pg_dump -U postgres phoenix > postgres-backup.sql
/Users/yurilima/Downloads/mainphx/backup-phoenix/node_modules/@amitbar/pg-dump-restore-node-wrapper/bin/macos/bin/pg_dump
docker exec -i -e PGPASSWORD=Na21907722 postgresDB pg_dump -U postgres -h localhost -p 5432 -d phoenix -f postgres_2021-01-21_10-00-00.sql
docker exec -i -e PGPASSWORD=Na21907722 postgresDB pg_dump -U postgres phoenix > postgres-backup.sql
chmod +x backup.sh
/opt/containers/phx/backup.sh

4
backup.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
# Run pg_dump command inside the postgresDB container
docker exec -i -e PGPASSWORD=Na21907722 postgresDB pg_dump -U postgres phoenix > postgres-backup.sql

4
server_custom/backup.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
# Run pg_dump command inside the postgresDB container
docker exec -i -e PGPASSWORD=Na21907722 postgresDB pg_dump -U postgres phoenix > postgres-backup.sql