File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,22 +13,5 @@ cd $(dirname "$0")/..
1313# Show usage and bail with no arguments
1414[ -z " $* " ] && print_usage
1515
16- # Grab host arg
17- host=" $1 "
18-
19- # Perform a host-check and establish GHE_REMOTE_XXX variables.
20- ghe_remote_version_required " $host "
21-
22- # The snapshot to restore should be set by the ghe-restore command but this lets
23- # us run this script directly.
24- : ${GHE_RESTORE_SNAPSHOT:= current}
25-
26- # Transfer all Pages data from the latest snapshot to the GitHub instance
27- # in a single rsync invocation.
28- if [ -d " $GHE_DATA_DIR /$GHE_RESTORE_SNAPSHOT /pages/" ]; then
29- ghe-rsync -avz --delete \
30- -e " ghe-ssh -p $( ssh_port_part " $host " ) " \
31- --rsync-path=" sudo -u git rsync" \
32- " $GHE_DATA_DIR /$GHE_RESTORE_SNAPSHOT /pages/" \
33- " $( ssh_host_part " $host " ) :$GHE_REMOTE_DATA_USER_DIR /pages" 1>&3
34- fi
16+ # Restore all pages data via rsync
17+ ghe-restore-userdata pages " $1 "
You can’t perform that action at this time.
0 commit comments