File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
share/github-backup-utils Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -100,8 +100,8 @@ ghe-ssh "$GHE_HOSTNAME" -- 'ghe-export-ssh-host-keys' > ssh-host-keys.tar ||
100100failures=" $failures ssh-host-keys"
101101
102102echo " Backing up MySQL database ..."
103- echo ' ghe-export-mysql | gzip' |
104- ghe-ssh " $GHE_HOSTNAME " -- /bin/sh > mysql.sql.gz ||
103+ echo ' set -o pipefail; ghe-export-mysql | gzip' |
104+ ghe-ssh " $GHE_HOSTNAME " -- /bin/bash > mysql.sql.gz ||
105105failures=" $failures mysql"
106106
107107echo " Backing up Redis database ..."
Original file line number Diff line number Diff line change 11#! /bin/sh
22# / Usage: ghe-ssh [<option>...] <host> [<simple-command>...]
3- # / echo <complex-command>... | ghe-ssh [<option>...] <host> /bin/sh
3+ # / echo 'set -o pipefail; <complex-command>...' | ghe-ssh [<option>...] <host> /bin/bash
44# / Helper to ssh into a GitHub instance with the right user and port. The first
55# / form should be used for simple commands; the second form should be used for
66# / complex commands that include pipelines or multiple commands.
You can’t perform that action at this time.
0 commit comments