## ADD REPO

helm repo add ananace-charts https://ananace.gitlab.io/charts

## SHOW LAST VALUES

helm search repo ananace-charts/matrix-synapse --versions

helm show values ananace-charts/matrix-synapse --version=2.7.1 > values.2.7.1.yaml

## HELM INSTALL

helm install matrix --namespace matrix-dialbox-cloud --values values.yaml ananace-charts/matrix-synapse

## HELM UPGRADE

helm upgrade matrix --namespace matrix-dialbox-cloud --values values.yaml --version=2.7.3 ananace-charts/matrix-synapse

## CREATE DATABASE MATRIX

https://github.com/matrix-org/synapse/blob/develop/docs/postgres.md

CREATE DATABASE matrix
    WITH
    OWNER = matrix
    ENCODING = 'UTF8'
    LC_COLLATE = 'C'
    LC_CTYPE = 'C'
    TABLESPACE = pg_default
    CONNECTION LIMIT = -1
    IS_TEMPLATE = False;

## MIGRATE PVC

---- From CUR ----

krsync -avz sapiantools-6c46d7f47c-w552q:/matrix-matrix-synapse/ /home/cristian/Documentos/DOCUMENTOS_IMPORTANTES/pvc-matrix-cur/2022-23-09/

--- To k3s-sapian-cloud ----

krsync -avz /home/cristian/Documentos/DOCUMENTOS_IMPORTANTES/pvc-matrix-cur/2022-23-09/ sapiantools-8f47cff9-nwb2c:/matrix-matrix-synapse/

--- backup ---

krsync -avz sapiantools-6cd8c67d9f-7c454:/matrix-matrix-synapse-rwm/ /home/cristian/Documentos/pvc-cur/matrix/2022-11-08/
