File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ export CALLING_SCRIPT="ghe-backup"
46
46
47
47
# Setup progress tracking
48
48
init-progress
49
+ export PROGRESS_TOTAL=14 # Minimum number of steps in backup is 14
50
+ echo " $PROGRESS_TOTAL " > /tmp/backup-utils-progress-total
49
51
export PROGRESS_TYPE=" Backup"
50
52
echo " $PROGRESS_TYPE " > /tmp/backup-utils-progress-type
51
53
export PROGRESS=0 # Used to track progress of backup
@@ -72,7 +74,7 @@ if [ "$GHE_BACKUP_PAGES" != "no" ]; then
72
74
OPTIONAL_STEPS=$(( OPTIONAL_STEPS + 1 ))
73
75
fi
74
76
75
- PROGRESS_TOTAL=$(( OPTIONAL_STEPS + 14 )) # Minimum number of steps in backup is 14
77
+ PROGRESS_TOTAL=$(( OPTIONAL_STEPS + PROGRESS_TOTAL )) # Minimum number of steps in backup is 14
76
78
echo " $PROGRESS_TOTAL " > /tmp/backup-utils-progress-total
77
79
# Check to make sure moreutils parallel is installed and working properly
78
80
ghe_parallel_check
Original file line number Diff line number Diff line change 311
311
export PROGRESS_TOTAL=$(( OPTIONAL_STEPS + 7 ))
312
312
313
313
init-progress
314
+ echo " $PROGRESS_TOTAL " > /tmp/backup-utils-progress-total
314
315
export PROGRESS_TYPE=" Restore"
315
316
echo " $PROGRESS_TYPE " > /tmp/backup-utils-progress-type
316
317
export PROGRESS=0 # Used to track progress of restore
317
318
echo " $PROGRESS " > /tmp/backup-utils-progress
318
- echo " $PROGRESS_TOTAL " > /tmp/backup-utils-progress-total
319
319
320
320
# Log restore start message locally and in /var/log/syslog on remote instance
321
321
START_TIME=$( date +%s)
You can’t perform that action at this time.
0 commit comments