@ts678
Ok.
So, how do I add these items to the file, after running the backup, but before the email would be sent?
In case it’s not clear, I want [this may not be an exhaustive or exclusive list, but if someone can show me how to manage these items, I am pretty sure I can stumble my way though most anything else I need.]
Backup Name: %backup-name%
BackupFrom: %LOCALPATH%
Operation Name: %OPERATIONNAME%
Result: %PARSEDRESULT%
Full Result: %RESULT%
I’m sure I can generate my own email, but that’s a lot of hassle. I’ve done it that way in the past, using powershell - but that requires a lot of tinkering on each station you’re going to setup duplicati.I really want something that’s as bog-standard as possible. Adding a line like this:
–send-mail-body=Backup Name: %backup-name% ; BackupFrom: %LOCALPATH% ; Operation Name: %OPERATIONNAME% ; Result: %PARSEDRESULT% ; Full Result: %RESULT%
…Well, that’s a lot cleaner, quicker, easier to maintain, uniform etc.
And while hard-returns would be really nice, I’ll keep doing it without, unless there’s some really stream-lined way to do it in a file.
I hate to be a curmudgeon, but simply having a way to drop some hard-returns in the body provided in the CLI/config is far more elegant, IMO, than somehow loading a file with the text you want.
The less I have to modify for each install, the better. The less I tweak the process to use non-native options, etc - well even better.
All that said, explain how I’d load this file with the text I want, and perhaps it’s not as ugly as I fear.
TIA
Greg