We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45a5219 commit 02b66f9Copy full SHA for 02b66f9
postgres/scripts/backup.sh
@@ -1,9 +1,12 @@
1
#!/bin/bash
2
3
-SSH_REMOTE_HOST=username@hostname
+# Run this script like this:
4
+# PGPASSWORD=password SSH_REMOTE_HOST=username@hostname bash -c "./backup.sh"
5
+
6
+# SSH_REMOTE_HOST=username@hostname
7
+# PGPASSWORD="backupuserpassword"
8
PGUSER="backup"
9
PGDATABASE="mapswipe"
-PGPASSWORD="backupuserpassword"
10
11
# Create a ssh tunnel in the background and save PID
12
ssh -Cfo ExitOnForwardFailure=yes -NL 1111:localhost:5432 ${SSH_REMOTE_HOST}
0 commit comments