## ADD REPO

helm repo add t3n https://storage.googleapis.com/t3n-helm-charts

## Install chart

helm install snipeit t3n/snipeit --version 3.2.3 --values values.yaml

## BACKUP PVC

krsync -avz sapiantools-69bc46bd97-7drjt:/snipeit/ /home/cristian/Documentos/pvc-cur/snipeit/2022-12-14/

## BACKUP DATABASE

mysqldump -h 127.0.100.1 -p -uroot snipeit > /home/cristian/Documentos/pvc-cur/mariadb.default.svc.cluster.local-snipeit-2022-09-27.sql

## DATABASE 

kubectl exec --stdin --tty mariadb-primary-0 -- /bin/bash

CREATE DATABASE snipeit;

USE snipeit;

GRANT ALL PRIVILEGES ON *.* TO 'snipeit'@'%' IDENTIFIED BY 'iiphae0EveGhoomookiegaep3ruoquia';

GRANT ALL PRIVILEGES ON snipeit TO 'snipeit'@'%';

## UPLOAD BACKUP

mysql -p -usnipeit -h 127.0.200.1 --one-database snipeit < /home/cristian/Documentos/pvc-cur/mariadb.default.svc.cluster.local-snipeit-2022-09-27.sql
