FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 5ae63e54 authored by Dr Catherine Pitt's avatar Dr Catherine Pitt
Browse files

Fix quoting in send-backup-to-server.sh

parent 036b518c
No related branches found
No related tags found
No related merge requests found
Pipeline #628534 failed
......@@ -11,7 +11,10 @@ function dosql_local() {
function dosql_remote() {
SQL="$1"
ssh -A root@$NEW_SERVER 'sudo -u postgres psql -q -A backups -t -c "$SQL"'
cat <<EOF | ssh -A root@$NEW_SERVER sudo -u postgres psql -q -A backups -t
$SQL
EOF
}
function cmd_remote() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment