# https://www.reddit.com/r/selfhosted/comments/vpotsn/sheetable_selfhosted_music_sheet_organizer_v10/ Create user and group --------------------- Credentials -> Local Users -> Add Full Name: sheetable Username: sheetabl Disable Password: Data: Objects: Check public to select all objects Click Backup # After backup, verify presence of backup file: ls -al /mnt/stpool1/apps/pgadmin/storage/stuurmcp_telkomsa.net/$(date -I) Migrating database ------------------ # In truenas shell # copy backup file(s) to sheetable backups folder, replacing $(date -I) with date when backup was made if not today cp -vr /mnt/stpool1/apps/pgadmin/storage/stuurmcp_telkomsa.net/$(date -I) /mnt/SSD1/docker/data/sheetable/pgbackups jlmkr shell docker cd /opt/stacks/sheetable docker compose down # remove all files/folders from pgdata; if any are already in this folder with data to be retained, move it to another folder before executing next command rm -r /mnt/data/sheetable/pgdata/* docker compose up -d # After successfull startup of sheetable and postgres, stop sheetable from docker cmd line docker stop sheetable docker exec sheetable_postgresql psql -U sheetable -d postgres -c "DROP DATABASE \"sheetable\";" docker exec sheetable_postgresql psql -U sheetable -d postgres -c "CREATE DATABASE \"sheetable\";" docker exec sheetable_postgresql psql -U sheetable -d sheetable -f /mnt/backups/$(date -I)/sheetable-backup.sql # replace $(date -I) with the appropriate date Migrating config storage ------------------------ # In truenas shell # copy config storage to new install data folder cp -pr /mnt/stpool1/apps/sheetable/* /mnt/SSD1/docker/data/sheetable/appdata/ chown -R sheetabl:sheetabl /mnt/SSD1/docker/data/sheetable/appdata/ docker start sheetable Default admin login ------------------- Email: admin@admin.com Password: sheetable Stop truenas sheetable ----------------------- # In truenas shell heavyscript app --stop sheetable # NB: Do NOT stop sheetable with truenas gui Troubleshooting --------------- # If you get persistent db authentication errors: Ensure that the service name (name of the stanza), host name and container name of the postgresql container in the compose.yml file and the DB_HOST value in the .env file are all the same # If you cannot login to sheetable with the email and password used on the truenas version: Check the /mnt/data/sheetable/config folder to see if there is any *.db file created. If so, it means that sheetable created a default sqlite db instead of using postgres. Make sure that the .sheetable.env file has a DB_DRIVER=postgres line item. If you need to log into db -------------------------- docker exec -it sheetable_postgresql bash psql -U sheetable -d sheetable