Skip to content

Shell Script to Backup TrueNAS Scale Config through the API

License

Notifications You must be signed in to change notification settings

ARC-XX/truenasscale_api_config_backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

TrueNAS Scale API Backup

A bash script used to access the TrueNAS Scale API remotely to backup the configuration.

Requirements

A Remote system for running the script and saving the output.
(Iam using Debian for example, curl needs to be installed)

Setup TrueNAS Scale

You only need to create a API Key.
Create TrueNAS API Key

Example Config Debian

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

Sources

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

License

This repository is licensed under the GNU General Public License v3.0.
For more information, see the LICENSE file.

Disclaimer

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

Contributions are always welcome! If you find an error or would like to suggest an improvement, please create an issue.

About

Shell Script to Backup TrueNAS Scale Config through the API

Topics

Resources

License

Stars

Watchers

Forks

Languages