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
72
-
echo"Git repositories contain symbolic links that need to be preserved during a backup."1>&2
71
+
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
78
-
echo"hard links, symbolic links, or another issue that may affect backups."1>&2
76
+
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
85
-
echo"Backup Utilities use hard links to store backup data efficiently."1>&2
82
+
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
86
83
exit 1
87
84
fi
88
85
rm -rf src dest1 dest2
@@ -123,9 +120,8 @@ ghe_restore_check
123
120
124
121
# Check to see if there is a running backup
125
122
if [ -h ../in-progress ];then
126
-
echo"Error: detected a backup already in progress from a previous version of ghe-backup."1>&2
127
-
echo"If there is no backup in progress anymore, please remove"1>&2
128
-
echo"the $GHE_DATA_DIR/in-progress file and try again."1>&2
123
+
124
+
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
129
125
exit 1
130
126
fi
131
127
@@ -138,20 +134,16 @@ if [ -f ../in-progress ]; then
138
134
# will clean up the failed backup.
139
135
unlink ../in-progress
140
136
else
141
-
echo"Error: A backup of $GHE_HOSTNAME may still be running on PID $pid."1>&2
142
-
echo1>&2
143
-
echo" If PID $pid is not a process related to the backup utilities, please remove"1>&2
144
-
echo" the $GHE_DATA_DIR/in-progress file and try again."1>&2
137
+
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