47 lines
1.3 KiB
Markdown
47 lines
1.3 KiB
Markdown
# Setup
|
|
|
|
- Docker
|
|
_Currently hosted on an ubuntu lxc container with docker and portainer [+ information](https://git.limbosolutions.com/kb/lxc)._
|
|
|
|
- [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)
|
|
|
|
[Docker Compose File](../docker/docker-compose.yaml)
|
|
|
|
## Backup & Restore
|
|
|
|
Using [duplicati](https://git.limbosolutions.com/kb/duplicati) to daily backups of files and databases.
|
|
|
|
|
|
### 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})
|
|
```
|
|
|
|
## HomeAssistant DashBoard
|
|
|
|

|
|
|
|
```yaml
|
|
type: vertical-stack
|
|
cards:
|
|
- type: entities
|
|
entities:
|
|
- type: weblink
|
|
name: Homepage
|
|
url: http://cloud.limbosolutions.com
|
|
- type: weblink
|
|
name: Duplicati
|
|
url: http://wansrv01.dev.lan:8203
|
|
- type: weblink
|
|
name: Git
|
|
url: https://git.limbosolutions.com/marcio.fernandes/nextcloud/
|
|
title: cloud.limbosolutions.com
|
|
```
|