GOCDB / gocdb-failover-scripts

Scripts and doc for hosting a failover
1 stars 2 forks source link

Use ssh instead of wget to fetch the dmp file #2

Closed gregcorbett closed 4 years ago

gregcorbett commented 4 years ago

As the dmp file will soon reside on a host without a webserver. This is the code running on our failover now.

gregcorbett commented 4 years ago

Does this provide the correct exit code when it fails to copy?

the scp command provides a non-zero exit code on a failure to copy, at wish point the set -eu should cause the cron job to end.

Does it matter if it doesn't?

🤷