Skip to main content
Version: 0.9.x

Upgrading

Before upgrading

Before you upgrade, take a backup of the TSB (TCC) state. You can achieve this by dumping the content of your Postgres database. Please check with your Database Admin on the procedure. As a demo, use this command to backup a Postgres database running in the tcc Namespace:

kubectl -n tcc exec deployment/postgres -- \
bash -c "pg_dump -U tcc tcc" > /tmp/tccdb.sql

# check the backup content
head -15 /tmp/tccdb.sql

If you need to restore the backup, use the following command:

cat /tmp/tccdb.sql | kubectl -n tcc exec -i deployment/postgres -- \
bash -c "psql -U tcc -d tcc" > /tmp/tccdb-out.sql