due to lack of this feature I developed little run-script-after script, it might be useful for someone else. Its windows only and at least 2.0.2.10_canary_2017-10-11 is required. Feel free to post bugfixes and improvements.
Have fun, Jan
@echo off
if not "%DUPLICATI__OPERATIONNAME%" == "Backup" goto :EOF
set "DUPLICATI=C:\Program Files\Utils\Duplicati 2\Duplicati.CommandLine.exe"
set "DBPATH=C:\YourDBLocation.sqlite"
set "ENCRYPTION=--no-encryption"
set "RESULT_FILE=%TEMP%\DuplicatiAfterBackup.txt"
set "RESULT_FILE_TOO_LONG=%TEMP%\DuplicatiAfterBackup.TooLong.txt"
set "SUBJECT=Duplicati %DUPLICATI__backup_name% backup result: %DUPLICATI__PARSED_RESULT%"
set "MAIL_OPTIONS=--send-mail-to=you@your.email"
set "MAIL_OPTIONS=%MAIL_OPTIONS% --send-mail-url=smtp://your.smtp.server:25"
set "EXCLUDE_FOLDERS=--exclude=*\\"
set "MAX_BYTE_SIZE=10000"
echo Result: %DUPLICATI__PARSED_RESULT% > "%RESULT_FILE%"
echo. >> "%RESULT_FILE%"
"%DUPLICATI%" compare file://dummy 1 0 "--dbpath=%DBPATH%" "%EXCLUDE_FOLDERS%" --full-result %ENCRYPTION% >> "%RESULT_FILE%"
for /f "usebackq" %%A in ('%RESULT_FILE%') do set SIZE=%%~zA
if %SIZE% GTR %MAX_BYTE_SIZE% (
echo Comparison file size of %SIZE% is over max %MAX_BYTE_SIZE% bytes, it was stored in %RESULT_FILE% > "%RESULT_FILE_TOO_LONG%"
set "RESULT_FILE=%RESULT_FILE_TOO_LONG%"
)
"%DUPLICATI%" send-mail --send-mail-subject="%SUBJECT%" --send-mail-body=%RESULT_FILE% %MAIL_OPTIONS%