Skip to content

Commit 4409bcc

Browse files
authored
Merge pull request #589 from github/lowply/gzip-routes-list
Compress remote_routes_list on the source instance
2 parents 71cd8f6 + a4210b3 commit 4409bcc

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

share/github-backup-utils/ghe-backup-repositories

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ ghe-ssh "$GHE_HOSTNAME" -- cat $remote_routes_list | ghe_debug
128128
bm_end "$(basename $0) - Generating routes"
129129

130130
bm_start "$(basename $0) - Fetching routes"
131-
ghe-ssh "$GHE_HOSTNAME" -- cat $remote_routes_list > $routes_list
131+
ghe-ssh "$GHE_HOSTNAME" -- gzip -c $remote_routes_list | gzip -d > $routes_list
132132
cat $routes_list | ghe_debug
133133
bm_end "$(basename $0) - Fetching routes"
134134

share/github-backup-utils/ghe-backup-storage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ ghe-ssh "$GHE_HOSTNAME" -- cat $remote_routes_list | ghe_debug
9696
bm_end "$(basename $0) - Generating routes"
9797

9898
bm_start "$(basename $0) - Fetching routes"
99-
ghe-ssh "$GHE_HOSTNAME" -- cat $remote_routes_list > $routes_list
99+
ghe-ssh "$GHE_HOSTNAME" -- gzip -c $remote_routes_list | gzip -d > $routes_list
100100
cat $routes_list | ghe_debug
101101
bm_end "$(basename $0) - Fetching routes"
102102

share/github-backup-utils/ghe-restore-pages

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ ghe-ssh "$GHE_HOSTNAME" -- cat $remote_routes_list | ghe_debug
113113
bm_end "$(basename $0) - Generating routes"
114114

115115
bm_start "$(basename $0) - Fetching routes"
116-
ghe-ssh "$GHE_HOSTNAME" -- cat $remote_routes_list > $routes_list
116+
ghe-ssh "$GHE_HOSTNAME" -- gzip -c $remote_routes_list | gzip -d > $routes_list
117117
cat $routes_list | ghe_debug
118118
bm_end "$(basename $0) - Fetching routes"
119119

share/github-backup-utils/ghe-restore-repositories

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ ghe-ssh "$GHE_HOSTNAME" -- cat $remote_routes_list | ghe_debug
125125
bm_end "$(basename $0) - Generating routes"
126126

127127
bm_start "$(basename $0) - Fetching routes"
128-
ghe-ssh "$GHE_HOSTNAME" -- cat $remote_routes_list > $routes_list
128+
ghe-ssh "$GHE_HOSTNAME" -- gzip -c $remote_routes_list | gzip -d > $routes_list
129129
cat $routes_list | ghe_debug
130130
bm_end "$(basename $0) - Fetching routes"
131131

share/github-backup-utils/ghe-restore-repositories-gist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ ghe-ssh "$GHE_HOSTNAME" -- cat $remote_routes_list | ghe_debug
115115
bm_end "$(basename $0) - Generating routes"
116116

117117
bm_start "$(basename $0) - Transferring routes"
118-
ghe-ssh "$GHE_HOSTNAME" -- cat $remote_routes_list > $routes_list
118+
ghe-ssh "$GHE_HOSTNAME" -- gzip -c $remote_routes_list | gzip -d > $routes_list
119119
cat $routes_list | ghe_debug
120120
bm_end "$(basename $0) - Transferring routes"
121121

share/github-backup-utils/ghe-restore-storage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ ghe-ssh "$GHE_HOSTNAME" -- cat $remote_routes_list | ghe_debug
105105
bm_end "$(basename $0) - Generating routes"
106106

107107
bm_start "$(basename $0) - Fetching routes"
108-
ghe-ssh "$GHE_HOSTNAME" -- cat $remote_routes_list > $routes_list
108+
ghe-ssh "$GHE_HOSTNAME" -- gzip -c $remote_routes_list | gzip -d > $routes_list
109109
cat $routes_list | ghe_debug
110110
bm_end "$(basename $0) - Fetching routes"
111111

0 commit comments

Comments
 (0)