Hi,
Currently running a script to do my restic backups daily which has been great, I have mounted my windows share on a debian machine that is running restic and mounted my NAS, i was wondering what possibility to put the output when it fails to get an email. Right now i get an email saying it was successfully, but when i check the email i know it was not successful because of the output of the file would there be a way to output the error below to the script?
This is the script
https://pastebin.com/Ap1pirk0
if i run the script manually when the nas is not mounted i get this
May 26 2018 16:45:12 -05: backup-script started
open repository
Fatal: unable to open config file: Stat: stat /media/backupnas2/config: no such file or directory
Is there a repository at the following location?
/media/backupnas2
Fatal: unable to open config file: Stat: stat /media/backupnas2/config: no such file or directory
Is there a repository at the following location?
/media/backupnas2
Fatal: unable to open config file: Stat: stat /media/backupnas2/config: no such file or directory
Is there a repository at the following location?
/media/backupnas2
using temporary cache in /tmp/restic-check-cache-197644745
Fatal: unable to open config file: Stat: stat /media/backupnas2/config: no such file or directory
Is there a repository at the following location?
/media/backupnas2
Which is good i just want to pipe that down
Thank you