A bash script used to access the TrueNAS Scale API remotely to backup the configuration.
A Remote system for running the script and saving the output.
(Iam using Debian for example, curl needs to be installed)
You only need to create a API Key.
Create TrueNAS API Key
Install the dependencies for debian to run the script
$ sudo apt install curl
Make the script executable
$ sudo chmod u+x /*pathtobackupscript*/truenasscale-backup.sh
Execute the script through crontab, in the example at 1 in the morning
$ sudo crontab -e
0 1 * * * /*pathtobackupscript*/truenasscale-backup.sh
https://github.com/curl/curl
https://www.truenas.com/docs/scale/api/
You access the documentation for the TrueNAS API over the WebUI of your Truenas system
This repository is licensed under the GNU General Public License v3.0.
For more information, see the LICENSE file.
This repository is for educational and informational purposes only.
The author assumes no liability for any damages that may arise from the use of the contents of this repository.
Contributions are always welcome! If you find an error or would like to suggest an improvement, please create an issue.