©XSIBackup-Free: Free Backup Software for ©VMWare ©ESXi

Forum ©XSIBackup: ©VMWare ©ESXi Backup Software


You are not logged in.

#1 2019-03-17 15:28:45

newmember
Member
Registered: 2018-10-15
Posts: 34

smtp failed and chained backups failed

>>> smtp failed
>>> chained job failed



>>>I ran my job by cut/paste the command line from the crontab:

[root@esxi-38:/vmfs/volumes/5bc410e3-ae8c84a6-07cf-5cf3fc1d7030/xsi-dir]  /vmfs/volumes/datastore1/xsi-dir/jobs/038


>>>At the end of the job we see that smtp=2: not found:



The ESXi configuration was saved to "/vmfs/volumes/QNAP-Archive"
--------------------------------------------------------------------------------------------------------------------------------------------------------
No errors detected in backup
--------------------------------------------------------------------------------------------------------------------------------------------------------
Backup finished
Tip: no chained backups scheduled, set --on-success and/or --on-error arguments to chain a backup
--------------------------------------------------------------------------------------------------------------------------------------------------------
Killed
/vmfs/volumes/datastore1/xsi-dir/jobs/038: line 13: --use-smtp=2: not found
[root@esxi-38:/vmfs/volumes/5bc410e3-ae8c84a6-07cf-5cf3fc1d7030/xsi-dir]



>>>  Here is my job


[root@esxi-38:/vmfs/volumes/5bc410e3-ae8c84a6-07cf-5cf3fc1d7030/xsi-dir] cat /vmfs/volumes/datastore1/xsi-dir/jobs/038
"/vmfs/volumes/datastore1/xsi-dir/xsibackup" \
--backup-prog=OneDiff \
--backup-point=/vmfs/volumes/QNAP-Archive \
--backup-type=Running \
--backup-how=Hot \
--del-dirs=+2d
--use-smtp=2 \
--mail-to=c@ions.com \
--backup-id=038 \
--description="038oneDiff" \
--on-success="backupId->039" \
--on-error="backupId->039" \
--exec=yes >> "/vmfs/volumes/datastore1/xsi-dir/var/logs/xsibackup.log"
[root@esxi-38:/vmfs/volumes/5bc410e3-ae8c84a6-07cf-5cf3fc1d7030/xsi-dir]


>>> Here are my smtp servers


[root@esxi-38:/vmfs/volumes/5bc410e3-ae8c84a6-07cf-5cf3fc1d7030/xsi-dir] cat conf/smtpsrvs
# [TITLE] = SMTP Server
# You can add as many SMTP servers as you want
# Columns are separated by colons as described below
# One server per line pledging to the following format (please, do note that the server IP or FQDN and port are separated by a colon)
# ORDINAL(integer);--smtp-srv(IP or FQDN):--smtp-port;--mail-from;--smtp-usr;--smtp-pwd;--smtp-auth(none|anystring);--smtp-sec(TLS|anystring);--smtp-delay(0-4 sec)
# Do not parse any --smtp-delay unless you need it 0 is OK, only first 8 fields are mandatory
# Example
# 1;smtp.gmail.com:465;youremail@gmail.com;youremail@gmail.com;Y0urpassw0rd;yes;TLS;0
2;ions-com.mail.protection.outlook.com:25;esxi-noreply@ions.com;esxi-noreply@ions.com;none;none;TLS;0
[root@esxi-38:/vmfs/volumes/5bc410e3-ae8c84a6-07cf-5cf3fc1d7030/xsi-dir]

Offline

#2 2019-03-17 19:41:10

admin
Administrator
Registered: 2017-04-21
Posts: 2,057

Re: smtp failed and chained backups failed

Be extremely careful when cutting and pasting in the shell, it's common to suffer from character substitution.
This message:

/vmfs/volumes/datastore1/xsi-dir/jobs/038: line 13: --use-smtp=2: not found

Is letting you know that that piece of code is being executed on its own line and that there isn't any executable in the path called --use-smtp=2, so revise your code and find where the problem is.

Offline

Board footer