You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo"Error: the filesystem containing $GHE_DATA_DIR does not support symbolic links."1>&2
71
-
echo"Git repositories contain symbolic links that need to be preserved during a backup."1>&2
70
+
log_error "Error: the filesystem containing $GHE_DATA_DIR does not support symbolic links. \nGit repositories contain symbolic links that need to be preserved during a backup."1>&2
echo"Error: rsync encountered an error that could indicate a problem with permissions,"1>&2
77
-
echo"hard links, symbolic links, or another issue that may affect backups."1>&2
75
+
log_error "Error: rsync encountered an error that could indicate a problem with permissions,\n hard links, symbolic links, or another issue that may affect backups."1>&2
echo"Error: the filesystem containing $GHE_DATA_DIR does not support hard links."1>&2
84
-
echo"Backup Utilities use hard links to store backup data efficiently."1>&2
81
+
log_error "Error: the filesystem containing $GHE_DATA_DIR does not support hard links.\n Backup Utilities use hard links to store backup data efficiently."1>&2
85
82
exit 1
86
83
fi
87
84
rm -rf src dest1 dest2
@@ -122,9 +119,8 @@ ghe_restore_check
122
119
123
120
# Check to see if there is a running backup
124
121
if [ -h ../in-progress ];then
125
-
echo"Error: detected a backup already in progress from a previous version of ghe-backup."1>&2
126
-
echo"If there is no backup in progress anymore, please remove"1>&2
127
-
echo"the $GHE_DATA_DIR/in-progress file and try again."1>&2
122
+
123
+
log_error "Error: detected a backup already in progress from a previous version of ghe-backup. \nIf there is no backup in progress anymore, please remove \nthe $GHE_DATA_DIR/in-progress file."1>&2
128
124
exit 1
129
125
fi
130
126
@@ -137,20 +133,16 @@ if [ -f ../in-progress ]; then
137
133
# will clean up the failed backup.
138
134
unlink ../in-progress
139
135
else
140
-
echo"Error: A backup of $GHE_HOSTNAME may still be running on PID $pid."1>&2
141
-
echo1>&2
142
-
echo" If PID $pid is not a process related to the backup utilities, please remove"1>&2
143
-
echo" the $GHE_DATA_DIR/in-progress file and try again."1>&2
136
+
log_error "Error: A backup of $GHE_HOSTNAME may still be running on PID $pid. \nIf PID $pid is not a process related to the backup utilities, please remove \nthe $GHE_DATA_DIR/in-progress file and try again."1>&2
0 commit comments