Files
nextcloud/docs/setup.md
2023-03-12 13:25:52 +00:00

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
![Home Assistant Dashboard](images/nextcloud-homessistant-dashboard.png "Home Assistant 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
```