Adding backup for nextcloud

This commit is contained in:
Moritz Graf 2020-05-02 02:52:57 +02:00
parent 32856375aa
commit c8e54c469f
5 changed files with 14 additions and 35 deletions

View File

@ -27,7 +27,7 @@ kubectl patch deployment $DEPLOYMENT -n $NAMESPACE -p "{\"spec\": {\"template\":
## namespaces ## namespaces
```sh ```sh
namespaces="flux cert-manager nginx-ingress infrapuzzle kuard auth nextcloud datalab web development tt-rss backup monitoring" namespaces="flux cert-manager nginx-ingress infrapuzzle kuard auth nextcloud datalab web development tt-rss backup monitoring nextcloud"
for i in $( echo $NAMESPACES ) ; do for i in $( echo $NAMESPACES ) ; do
k create ns $i k create ns $i
done done
@ -147,11 +147,9 @@ helm upgrade --install gitea ./gitea-chart -n development -f development/gitea.s
helm upgrade --install gitea-phpmyadmin bitnami/phpmyadmin -n development -f development/gitea-phpmyadmin.yml helm upgrade --install gitea-phpmyadmin bitnami/phpmyadmin -n development -f development/gitea-phpmyadmin.yml
``` ```
### backup ### backup & restore
//TODO something with gitea dump to stdout and rclone to dropbox See the backup cronjob in the `/backup/` folder.
### restore
For backup & restore see [gitea documentation](https://docs.gitea.io/en-us/backup-and-restore/). For backup & restore see [gitea documentation](https://docs.gitea.io/en-us/backup-and-restore/).
@ -187,42 +185,23 @@ chown -R git. ./gitea-repositories/
Then login to git.moritzgraf.de and proceed with default values, or adjust them. Then login to git.moritzgraf.de and proceed with default values, or adjust them.
## nextcloud
```sh
helm upgrade --install nextcloud stable/nextcloud -n nextcloud -f nextcloud/nextcloud.secret.yml
helm upgrade --install nextcloud-phpmyadmin bitnami/phpmyadmin -n nextcloud -f nextcloud/nextcloud-phpmyadmin.yml
```
### backup & restore
## minio ## minio
```sh ```sh
kubectl apply -f minio kubectl apply -f minio
``` ```
## auth
Including:
* openLDAP
* phpldapadmin
* ldap self service
* dex
```sh
```
## nextcloud
Install with helm
```sh
```
Migate
Backup
## Add mopbot & corona & corona-api ## Add mopbot & corona & corona-api
```sh ```sh

Binary file not shown.

Binary file not shown.

Binary file not shown.