File tree Expand file tree Collapse file tree 4 files changed +9
-135
lines changed
share/github-backup-utils Expand file tree Collapse file tree 4 files changed +9
-135
lines changed Original file line number Diff line number Diff line change @@ -274,28 +274,17 @@ commands=("
274
274
echo \" Restoring Redis database ...\"
275
275
ghe-ssh \" $GHE_HOSTNAME \" -- 'ghe-import-redis' < \" $GHE_RESTORE_SNAPSHOT_PATH /redis.rdb\" 1>&3" )
276
276
277
- # Unified and enhanced restore method to 2.13.0 and newer
278
- if $CLUSTER || [ " $( version $GHE_REMOTE_VERSION ) " -ge " $( version 2.13.0) " ]; then
279
- commands+=("
280
- echo \" Restoring Git repositories ...\"
281
- ghe-restore-repositories \" $GHE_HOSTNAME \" " )
282
-
283
- commands+=("
284
- echo \" Restoring Gists ...\"
285
- ghe-restore-repositories-gist \" $GHE_HOSTNAME \" " )
277
+ commands+=("
278
+ echo \" Restoring Git repositories ...\"
279
+ ghe-restore-repositories \" $GHE_HOSTNAME \" " )
286
280
287
- commands+=("
288
- echo \" Restoring GitHub Pages artifacts ...\"
289
- ghe-restore-pages \" $GHE_HOSTNAME \" 1>&3" )
290
- else
291
- commands+=("
292
- echo \" Restoring Git repositories and Gists ...\"
293
- ghe-restore-repositories-rsync \" $GHE_HOSTNAME \" 1>&3" )
281
+ commands+=("
282
+ echo \" Restoring Gists ...\"
283
+ ghe-restore-repositories-gist \" $GHE_HOSTNAME \" " )
294
284
295
- commands+=("
296
- echo \" Restoring GitHub Pages ...\"
297
- ghe-restore-pages-rsync \" $GHE_HOSTNAME \" 1>&3" )
298
- fi
285
+ commands+=("
286
+ echo \" Restoring GitHub Pages artifacts ...\"
287
+ ghe-restore-pages \" $GHE_HOSTNAME \" 1>&3" )
299
288
300
289
commands+=("
301
290
echo \" Restoring SSH authorized keys ...\"
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments