# KUBE 7.1.557 Bash script for deploying/backups and restore SODEW infrastructures. > [!WARNING] > Documentation is outdated ### Install HELM ``` curl -fsSL https://get.helm.sh/helm-v3.16.2-linux-amd64.tar.gz | tar -xz sudo mv linux-amd64/helm /usr/local/bin/helm helm version ``` --- - [File structure](docs/file_scructure.md) - [Options](docs/options.md) - Usage - [Backup](docs/backup.md) - [Restore](docs/restore.md) - [Storage](docs/storage.md) - [k3s](docs/k3s.md) - [MariaDB](docs/resources/mariadb.md) - [Redis](docs/resources/redis.md) - [OpenLiteSpeed](docs/resources/openlitespeed.md) - [Postfix](docs/resources/postfix.md) - [Worker](docs/resources/worker.md) - [Site/Wordpress](docs/site.md) - [Transfer](docs/transfer.md) - [Shell](docs/shell.md) - [Log](docs/log.md) - [Cron](docs/cron.md) - [Test](docs/test.md) - [Install](docs/install.md) - [Script](docs/script.md) - [Mail server](docs/mta.md) ## Getting started Before you start, you must create a configuration file: ```bash cp config.sh.default config.sh ``` and make the necessary changes. If necessary, you can set your own password values for MariaDB, Redis, rSync, OpenLiteSpeed ... This can be done by specifying values for the corresponding variables or by writing values to the corresponding files in the `data` directory. If there are no files, just run the script without parameters. The files with passwords will be created automatically. After that you can make the appropriate edits. ## Usage The script requires elevated permissions to work (sudoers group). ## Scheme open ports ```mermaid flowchart LR; subgraph MD[MariaDB replica] MDM[mariadb-master-0] MDS[mariadb-slave-0] end subgraph RD[Redis cluster] RD0[redis-0] RD1[redis-1] RD2[redis-2] RS0[redis-sentinel-0] RS1[redis-sentinel-1] RS2[redis-sentinel-2] end subgraph OLS[OpenLiteSpeed] OL1[openlitespeed-0] OL2[openlitespeed-1] end PTF[postfix-xxxxxxxxx-xxxxx] MDM <==> MDS RD0 <==> RD1 <==> RD2 <==> RD0 RS0 <==> RS1 <==> RS2 <==> RS0 P3306([3306]) P3306 --mysql--> MD P6379([6379]) P26379([26379]) P6379 & P26379 --redis--> RD P80([80/443]) P80 --http/https--> OLS P7080([7080/31080]) P7080 --admin panel--> OLS P25([25]) P587([587]) P25 --smtp--> PTF P587 --smtp=tls--> PTF ``` ## Scheme use ports ```mermaid %%graph LR; flowchart LR; subgraph K3S[Server] MD[MariaDB] RD[Redis] PTF[Postfix] subgraph OLS[OpenLiteSpeed] WP[Sites on Wordpress] ADM[Admin Panel] end end NET[Internet] NET --80,443--> WP NET --31080--> ADM NET --25--> PTF WP --3306--> MD WP --6379--> RD WP --587--> PTF ``````