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
Copy file name to clipboardExpand all lines: bin/v-download-backup
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -169,6 +169,9 @@ if [ ! -e "$BACKUP/$backup" ]; then
169
169
downloaded='yes'
170
170
fi
171
171
if [ -z"$downloaded" ];then
172
+
subj="Download of $backup failed for $user"
173
+
$BIN/v-add-user-notification $user"$subj""<b>Unable to retrieve backup file from remote server.</b><br><b>Error:</b> $backup file doesn't exist in '${BACKUP}' directory."
174
+
sed -i "/v-download-backup $user /d"$HESTIA/data/queue/backup.pipe
172
175
check_result $E_NOTEXIST"backup file $backup doesn't exist in '${BACKUP}' folder"
173
176
else
174
177
if [ -e"$BACKUP/$backup" ];then
@@ -186,11 +189,10 @@ fi
186
189
# Send notification
187
190
if [ -e"$BACKUP/$backup" ];then
188
191
cd$BACKUP
189
-
subj="$user → Download of $backuphas been completed"
192
+
subj="Download of $backupcompleted for $user"
190
193
email=$(get_user_value '$CONTACT')
191
-
echo"Download of $backup has been completed you are able to download it for 12 hours"|$SENDMAIL -s "$subj"$email$notify
192
-
$BIN/v-add-user-notification $user"$subj""Download of $backup has been completed you are able to download it for 12 hours"
193
-
194
+
echo"Backup file $backup was retrieved from the remote server and will be available to download for 12 hours."|$SENDMAIL -s "$subj"$email$notify
195
+
$BIN/v-add-user-notification $user"$subj""Backup file <b>$backup</b> was retrieved from the remote server and will be available to download for <b>12 hours</b>."
0 commit comments