Backup TrueNAS configuration

Hello
I will ask a naive question (if the answer is in documentation thank you to point me to it)
I want to write a shell to save the configuration of the TrueNAS.
For the moment, we simply tar and save everything in dir /data/
AFAIK, the file freenas-v1.db is the config DB under sqlite format.
So I wonder if it is really safe to just copy this file freenas-v1.db and if this file could be used to restore TrueNAS configuration without any risk of db corruption ?
Is there a sqlite command that can dump the database in a format that could be used to get a backup and then can be used 100% sure to restore TrueNAS configuration ?

Something like
root@mystorage# sqlite3 /data/freenas-v1.db
root@mystorage# sqlite> .output /tmp/freenas-v1.db

Is it the right way to save the TrueNAS configuration ?

Thank you
Xavier

I suggest doing some research into this forum

However as a clue - multi_report by @joeschmuck would do exactly what you want. There are also other options

1 Like

Thank you
I look it - multi_report by @joeschmuck shell and found the answer to my questions
Regards
Xavier