Mail report without cron?

i just did this for a different command. This is not fully tested but i should point you in the right direction

NOW=$( date '+%Y-%m-%d-%H-%M-%S' )
yourrestic-command | /usr/bin/tee -a logfile-$now
mail -s "restic-comand finished " you@yourdomain.com < logfile-$now
1 Like