modified: README.md
This commit is contained in:
65
README.md
65
README.md
@@ -4,61 +4,32 @@ Welcome to public repository of [https://cloud.limbosolutions.com](https://cloud
|
||||
|
||||
Using [NextCloud](https://nextcloud.com/)
|
||||
|
||||
## kubernetes
|
||||
|
||||
### namespace
|
||||
|
||||
## Requirements
|
||||
``` yaml
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: cloud-limbosolutions-com
|
||||
labels:
|
||||
name: cloud-limbosolutions-com
|
||||
```
|
||||
|
||||
- Docker
|
||||
- Docker Compose
|
||||
- Portainer (optional)
|
||||
- [NextCloud Custom Docker Image](docker/Dockerfile) with smbclient extensions
|
||||
- [Duplicati Image with mySql client](https://git.limbosolutions.com/kb/duplicati/src/branch/main/docker/mysqlclient/README.md)
|
||||
|
||||
|
||||
|
||||
## NextCloud CLI
|
||||
### helm chart - nextcloud
|
||||
|
||||
``` bash
|
||||
|
||||
#force file scan for specfic user
|
||||
docker exec --user www-data nextcloud php occ files:scan USERNAME
|
||||
|
||||
helm repo add nextcloud https://nextcloud.github.io/helm/
|
||||
helm repo update
|
||||
```
|
||||
|
||||
Install/Upgrade Helm Chart
|
||||
|
||||
## Setup
|
||||
|
||||
[Docker Compose File](docker/ocker-compose.yaml)
|
||||
|
||||
## Backup and Restore
|
||||
|
||||
Using [custom duplicati image](https://git.limbosolutions.com/kb/duplicati) to daily backups files and databases. Every action (backup/restore) creates an log entry on docker.
|
||||
|
||||
### Duplicati - Default Options
|
||||
|
||||
Docker Log.
|
||||
|
||||
--run-script-after=dockerlog
|
||||
|
||||
### Duplicati - wiki job Options
|
||||
|
||||
Create db dump.
|
||||
|
||||
run-script-before-required:duplicati-mysql-backup
|
||||
|
||||
### Restore Database
|
||||
|
||||
```bash
|
||||
#select a file to import
|
||||
ls /db-dumps
|
||||
#select a file to import
|
||||
DB_FILE= "file name to import"
|
||||
mysql --host db -uroot -p ${MYSQL_DATABASE} < /db-dumps/$DB_FILE
|
||||
#root password (root password is the enviromnent variable ${MYSQL_ROOT_PASSWORD})
|
||||
``` bash
|
||||
./nexcloud/helm-up.sh
|
||||
```
|
||||
|
||||
## Maintenance
|
||||
|
||||
* 2024-02-19
|
||||
It is only possible to upgrade one major version at a time.
|
||||
## backup
|
||||
|
||||
[kubernets cron job](./jobs/backup)
|
||||
Reference in New Issue
Block a user