The information below is to help with current or future migration of the Postgres databases on your SCALE system running TrueCharts apps.
Prerequisites
The user running the scripts must have permissions to access the TrueNAS SCALE host shell and execute kubectl commands.
How to list database login info for TrueCharts apps
You can use these details to login to e.g. pgadmin, one of the TC apps that lets you manage databases.
Setting up the files
In TrueNAS SCALE, create a dataset that can house the script files. Put the .sh files in that dataset. Navigate to the dataset from the host shell. Make the files executable.