File tree Expand file tree Collapse file tree 2 files changed +27
-2
lines changed
share/github-backup-utils Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -275,13 +275,17 @@ if $CLUSTER || [ "$(version $GHE_REMOTE_VERSION)" -ge "$(version 2.13.0)" ]; the
275
275
276
276
echo " Restoring Gists ..."
277
277
ghe-restore-repositories-gist " $GHE_HOSTNAME "
278
+
279
+ echo " Restoring GitHub Pages ..."
280
+ ghe-restore-pages " $GHE_HOSTNAME " 1>&3
278
281
else
279
282
echo " Restoring Git repositories and Gists ..."
280
283
ghe-restore-repositories-rsync " $GHE_HOSTNAME " 1>&3
284
+
285
+ echo " Restoring GitHub Pages ..."
286
+ ghe-restore-pages-rsync " $GHE_HOSTNAME " 1>&3
281
287
fi
282
288
283
- echo " Restoring GitHub Pages ..."
284
- ghe-restore-pages " $GHE_HOSTNAME " 1>&3
285
289
286
290
echo " Restoring SSH authorized keys ..."
287
291
ghe-ssh " $GHE_HOSTNAME " -- ' ghe-import-authorized-keys' < " $GHE_RESTORE_SNAPSHOT_PATH /authorized-keys.json" 1>&3
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ # / Usage: ghe-restore-pages-rsync <host>
3
+ # / Restore an rsync snapshot of all Pages data to a GitHub instance.
4
+ # /
5
+ # / Note: This script typically isn't called directly. It's invoked by the
6
+ # / ghe-restore command when the rsync strategy is used.
7
+ set -e
8
+
9
+ # Bring in the backup configuration
10
+ # shellcheck source=share/github-backup-utils/ghe-backup-config
11
+ . " $( dirname " ${BASH_SOURCE[0]} " ) /ghe-backup-config"
12
+
13
+ # Show usage and bail with no arguments
14
+ [ -z " $* " ] && print_usage
15
+
16
+ bm_start " $( basename $0 ) "
17
+
18
+ # Restore all pages data via rsync
19
+ ghe-restore-userdata pages " $1 "
20
+
21
+ bm_end " $( basename $0 ) "
You can’t perform that action at this time.
0 commit comments