diff --git a/README.md b/README.md index ae6ee64..964727b 100644 --- a/README.md +++ b/README.md @@ -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 \ No newline at end of file +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 diff --git a/backup.sh b/backup.sh new file mode 100755 index 0000000..6e2fef4 --- /dev/null +++ b/backup.sh @@ -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 diff --git a/server_custom/backup.sh b/server_custom/backup.sh new file mode 100755 index 0000000..6e2fef4 --- /dev/null +++ b/server_custom/backup.sh @@ -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