File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
share/github-backup-utils Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 284
284
log_info " Checking for leaked ssh keys ..."
285
285
ghe-detect-leaked-ssh-keys -s " $GHE_SNAPSHOT_DIR " || true
286
286
287
- log_info " Restore of $GHE_HOSTNAME finished."
287
+ log_info " Backup of $GHE_HOSTNAME finished."
288
288
289
289
# Remove in-progress file
290
290
ghe_backup_finished
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ if [[ "$CALLING_SCRIPT" == "ghe-backup" ]]; then
170
170
actions_disk_size=$( transfer_size actions /tmp)
171
171
mssql_disk_size=$( transfer_size mssql /tmp)
172
172
173
- min_disk_req=$(( $(echo " $ repos_disk_size") + $(echo " $ pages_disk_size") + $(echo " $ es_disk_size") + $(echo " $ stor_disk_size") + $(echo " $ minio_disk_size") + $(echo " $ mysql_disk_size") + $(echo " $ actions_disk_size") + $(echo " $ mssql_disk_size") ))
173
+ min_disk_req=$(( $ repos_disk_size + pages_disk_size + es_disk_size + stor_disk_size + minio_disk_size + mysql_disk_size + actions_disk_size + mssql_disk_size))
174
174
175
175
echo -e " ### Data Transfer Sizes \nrepositories: $repos_disk_size MB\npages: $pages_disk_size MB\nelasticsearch: $es_disk_size MB\nstorage: $stor_disk_size MB\nminio: $minio_disk_size MB\nmysql: $mysql_disk_size MB\nactions: $actions_disk_size MB\nmssql: $mssql_disk_size MB" 1>&2
176
176
printf " min_disk_required for this backup is at least %d MB\n" " $min_disk_req " 1>&2
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ transfer_size()
61
61
total_file_size=$( ghe-rsync -arn --stats \
62
62
-e " ssh -q $GHE_EXTRA_SSH_OPTS -p 122 -l admin" \
63
63
--rsync-path=" sudo -u $user rsync" \
64
- $link_dest / $1 \
64
+ " $link_dest " / " $1 " \
65
65
--ignore-missing-args \
66
66
" $GHE_HOSTNAME :$data_user_dir /" \
67
67
" $dest_dir /" | grep " Total transferred file size" | sed ' s/.*size: //; s/,//g' )
You can’t perform that action at this time.
0 commit comments