Skip to content

Commit dcd9ae6

Browse files
committed
Restore asset attachments and hookshot deliveries
1 parent 49c23f9 commit dcd9ae6

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

bin/ghe-restore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,14 @@ ghe-restore-repositories-${GHE_BACKUP_STRATEGY} "$host" 1>&3
107107
echo "Restoring GitHub Pages ..."
108108
ghe-restore-pages-${GHE_BACKUP_STRATEGY} "$host" 1>&3
109109

110+
if [ "$GHE_VERSION_MAJOR" -ge 2 ]; then
111+
echo "Restoring asset attachments ..."
112+
ghe-restore-userdata alambic_assets "$host" 1>&3
113+
114+
echo "Restoring hook deliveries ..."
115+
ghe-restore-userdata hookshot "$host" 1>&3
116+
fi
117+
110118
echo "Restoring MySQL database ..."
111119
gzip -dc "$GHE_RESTORE_SNAPSHOT_PATH/mysql.sql.gz" | ghe-ssh "$host" -- 'ghe-import-mysql' 1>&3
112120

0 commit comments

Comments
 (0)