Sorry that this isn't really formatted as a proper issue report, but I just wanted to document the issues I had when installing it. Thanks for providing this script.
-
I initially installed in /home/truenas_admin/scripts - the script would not run there, because /home is mounted with the noexec flag. I put in another directory where I had exec permission to fix that.
-
The curl command to download the sendmail.py script failed, because the filename has
been changed from multireport_sendmail.py to sendmail.py in the oxyde1989/standalone-tn-send-email
repository. I fixed this by changing the filename in the curl command
-
The script then failed when trying to send the email. To fix this I had to set email settings
in TrueNAS in System->General Settings->Email (I'm using TrueNAS 25.04.2.6)
At this point the script ran successfully.
Another small thing:
In the README.md and in the comments in truenas_config_backup.txt the commands in 'Extra Info'
section use the script name ./config_backup.sh, which is different from the truenas_config_backup.sh
name you use in the text before that.
Anyway, thanks for providing this script. It is definitely useful for making backups of the config.
Sorry that this isn't really formatted as a proper issue report, but I just wanted to document the issues I had when installing it. Thanks for providing this script.
I initially installed in /home/truenas_admin/scripts - the script would not run there, because /home is mounted with the noexec flag. I put in another directory where I had exec permission to fix that.
The curl command to download the sendmail.py script failed, because the filename has
been changed from multireport_sendmail.py to sendmail.py in the oxyde1989/standalone-tn-send-email
repository. I fixed this by changing the filename in the curl command
The script then failed when trying to send the email. To fix this I had to set email settings
in TrueNAS in System->General Settings->Email (I'm using TrueNAS 25.04.2.6)
At this point the script ran successfully.
Another small thing:
In the README.md and in the comments in truenas_config_backup.txt the commands in 'Extra Info'
section use the script name ./config_backup.sh, which is different from the truenas_config_backup.sh
name you use in the text before that.
Anyway, thanks for providing this script. It is definitely useful for making backups of the config.