Please forgive the painfully newbie question and reflections, but I had a tough time getting off the ground with Gmail.
So having finally gotten basic functionality, does someone have a tutorial on how to specifically integrate dupReport.py with the Windows 10 Scheduler? Tried it over the years for other things and had no luck - works manually but doesn’t auto trigger - stuff like that.
Other cautionary tales:
- 1a. When you load Python (quick step 1.) on Windows (10 1903 in this case), check ON the box to add Python to the PATH (off by default). For what peculiar reason I don’t know, Python loads itself many folders deep in the User section, not under Program Files where one would expect executable files. BTW, the Python version included in Libre Office doesn’t work for this; don’t bother with it (found while trying to find where in **** they put it).
- 1b. Start a new Power Shell session after loading Python so the above PATH will be in play.
I’d gotten Duplicati to send the individual backup reports to the Gmail account, so I knew I could at least access the account. After the initial setup, I got a raft of authentication and timeout errors. I was sure I wasn’t setting up the .rc file correctly, because I’m not understanding what to enter.
- In particular inserver = – what should this look like? The help file says # DNS name of email server with Duplicati emails - but I don’t know what that means - I don’t know what Google’s DNS for Gmail is, and could it change any time? ???
Tried various things, but what wound up working was smtp.gmail.com - this may be obvious to sysadmins who work with email systems, but unfortunately not to me.
inserver = smtp.gmail.com
Got the hint from the Duplicati settings for
–send-mail-url=smtp://smtp.gmail.com:587/?starttls=when-available
Along the way, figured out not to put the full description email account information.
Unlike Duplicati, which needed it,
–send-mail-from=“My Name <myname @gmail.com>”
the dupReport.rc file can only have the simple version:
outaccount = myname @gmail.com
Somewhere, in the copious good help folks have posted, including @Marc_Aronson & others, there was a note in the Duplicati email setup articles that any string with blank characters in the string should be surrounded by " marks. This seems to work well enough but the side effect is that if you do this for the
–send-mail-subject=“Duplicati %PARSEDRESULT%, %OPERATIONNAME% report for %backup-name%_hostname”
dR won’t parse and you get a blank report.
[Note I changed the source_dest delimiter to an underscore (srcdestdelimiter = _ ), so don’t copy this verbatim if you aren’t doing that.]
So either change to this with the leading " mark:
subjectregex = ^"Duplicati ([\w ]*, |)Backup report for
or do it without the " marks and then this:
–send-mail-subject=Duplicati %PARSEDRESULT%, %OPERATIONNAME% report for %backup-name%_hostname
subjectregex = ^Duplicati ([\w ]*, |)Backup report for
In other words, Duplicati doesn’t need quotes around spaces for –send-mail-subject – didn’t test other strings.