Skip to content

Commit 93f7a62

Browse files
committed
update file names
1 parent 0a72be7 commit 93f7a62

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

bin/ghe-backup

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ export CALLING_SCRIPT="ghe-backup"
4747
# Setup progress tracking
4848
init-progress
4949
export PROGRESS_TYPE="Backup"
50-
echo $PROGRESS_TYPE > /tmp/track-progress-type
50+
echo $PROGRESS_TYPE > /tmp/backup-utils-progress-type
5151
export PROGRESS=0 # Used to track progress of backup
52-
echo $PROGRESS > /tmp/track-progress
52+
echo $PROGRESS > /tmp/backup-utils-progress
5353
export PROGRESS_TOTAL=18 # Maximum number of steps in backup
5454

5555
# Check to make sure moreutils parallel is installed and working properly

bin/ghe-progress

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,26 +30,26 @@ while true; do
3030
done
3131

3232
check_for_progress_file() {
33-
if [ ! -f /tmp/progress-info ]; then
33+
if [ ! -f /tmp/backup-utils-progress-info ]; then
3434
echo "No progress file found. has a backup or restore been started?"
3535
exit 1
3636
fi
3737
}
3838

3939
if [ -n "$ONCE" ]; then
4040
check_for_progress_file
41-
cat /tmp/progress-info
41+
cat /tmp/backup-utils-progress-info
4242
else
4343
check_for_progress_file
4444
clear
45-
cat /tmp/progress-info
45+
cat /tmp/backup-utils-progress-info
4646
while true; do
4747
if read -r -t 1 -n 1; then
4848
clear
4949
exit ;
5050
else
5151
clear
52-
cat /tmp/progress-info
52+
cat /tmp/backup-utils-progress-info
5353
fi
5454
done
5555
fi

bin/ghe-restore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,9 @@ export PROGRESS_TOTAL=$((OPTIONAL_STEPS + 5))
308308

309309
init-progress
310310
export PROGRESS_TYPE="Restore"
311-
echo $PROGRESS_TYPE > /tmp/track-progress-type
311+
echo $PROGRESS_TYPE > /tmp/backup-utils-progress-type
312312
export PROGRESS=0 # Used to track progress of restore
313-
echo $PROGRESS > /tmp/track-progress
313+
echo $PROGRESS > /tmp/backup-utils-progress
314314

315315
# Log restore start message locally and in /var/log/syslog on remote instance
316316
START_TIME=$(date +%s)

share/github-backup-utils/ghe-backup-config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ fi
5555
PATH="$GHE_BACKUP_ROOT/bin:$GHE_BACKUP_ROOT/share/github-backup-utils:$PATH"
5656
# shellcheck source=share/github-backup-utils/bm.sh
5757
. "$GHE_BACKUP_ROOT/share/github-backup-utils/bm.sh"
58-
. "$GHE_BACKUP_ROOT/share/github-backup-utils/track-progress"
58+
. "$GHE_BACKUP_ROOT/share/github-backup-utils/backup-utils-progress"
5959
# Save off GHE_HOSTNAME from the environment since we want it to override the
6060
# backup.config value when set.
6161
GHE_HOSTNAME_PRESERVE="$GHE_HOSTNAME"
@@ -648,7 +648,7 @@ restore-secret() {
648648

649649
#initialize progress tracking by clearing out the temp files used to track
650650
init-progress() {
651-
rm -f /tmp/track-progress-*
651+
rm -f /tmp/backup-utils-progress-*
652652
}
653653

654654

share/github-backup-utils/track-progress

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
# Current version is working solely with backups
55
progress(){
66

7-
PROGRESS=$(cat /tmp/track-progress)
8-
PROGRESS_TYPE=$(cat /tmp/track-progress-type)
7+
PROGRESS=$(cat /tmp/backup-utils-progress)
8+
PROGRESS_TYPE=$(cat /tmp/backup-utils-progress-type)
99
PROGRESS_PERCENT=$( echo "scale = 2; ($PROGRESS / $PROGRESS_TOTAL) * 100" | bc)
10-
echo $((PROGRESS +1)) > /tmp/track-progress
11-
echo "${PROGRESS_TYPE} progress: $PROGRESS_PERCENT % ($PROGRESS / $PROGRESS_TOTAL ) $1 " > /tmp/progress-info
10+
echo $((PROGRESS +1)) > /tmp/backup-utils-progress
11+
echo "${PROGRESS_TYPE} progress: $PROGRESS_PERCENT % ($PROGRESS / $PROGRESS_TOTAL ) $1 " > /tmp/backup-utils-progress-info
1212
}

0 commit comments

Comments
 (0)