feat: on production
This commit is contained in:
59
README.md
59
README.md
@@ -1,2 +1,61 @@
|
||||
|
||||
|
||||
# wiki.limbosolutions.com
|
||||
|
||||
Welcome to public repository of my [wiki](https://wiki.limbosolutions.com)
|
||||
|
||||
Using [media wiki](https://www.mediawiki.org/wiki/MediaWiki))
|
||||
|
||||
[Check](doc/administration/README.md) for more information about admistration.
|
||||
|
||||
## Requirements
|
||||
|
||||
- Docker
|
||||
_Currently hosted on an ubuntu lxc container with docker and portainer [+ information](https://git.limbosolutions.com/kb/lxc)._
|
||||
|
||||
- [Duplicati Image with mySql client](https://git.limbosolutions.com/kb/duplicati/src/branch/main/docker/mysqlclient/README.md)
|
||||
|
||||
## Setup
|
||||
|
||||
[Docker Compose File](docker-compose.yaml)
|
||||
|
||||
## Backup & Restore
|
||||
|
||||
Using [duplicati](https://git.limbosolutions.com/kb/duplicati) to daily backups of files and databases.
|
||||
|
||||
- Backup Name: wiki
|
||||
- Destination Server: backupsrv01.dev.lan
|
||||
- Destination Path: /wiki.limbosolutions.com/duplicati/wiki
|
||||
- Source Data : /wiki (check [Docker Compose File](docker-compose.yaml) for folder structure on /wiki)
|
||||
- Schedule: every day at 1:15 am
|
||||
- run-script-before-required:/duplicati-mysqlclient/scripts/backupdb.sh
|
||||
|
||||
### Settings
|
||||
|
||||
#### Default Options
|
||||
|
||||
```bash
|
||||
|
||||
--send-mail-any-operation=true
|
||||
--send-mail-body=%RESULT%
|
||||
--send-mail-level=all
|
||||
--send-mail-subject=Duplicati %OPERATIONNAME% report for wiki.limbosolutions.com -> %backup-name%
|
||||
--send-mail-to=to@email
|
||||
--send-http-result-output-format=Duplicati
|
||||
--send-mail-url= smtp://serveraddress:25
|
||||
--send-mail-password=username
|
||||
--send-mail-username=pass
|
||||
|
||||
```
|
||||
|
||||
|
||||
### 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})
|
||||
```
|
||||
|
||||
30
doc/administration/README.md
Normal file
30
doc/administration/README.md
Normal file
@@ -0,0 +1,30 @@
|
||||
# Administration
|
||||
|
||||
## HomeAssistant DashBoard
|
||||
|
||||

|
||||
|
||||
```yaml
|
||||
type: vertical-stack
|
||||
cards:
|
||||
- type: entities
|
||||
entities:
|
||||
- entity: sensor.limbowiki_info_status
|
||||
name: Status
|
||||
secondary_info: last-changed
|
||||
- entity: sensor.limbowiki_info_version
|
||||
name: Version
|
||||
- type: weblink
|
||||
name: Homepage
|
||||
url: http://wiki.limbosolutions.com
|
||||
- type: weblink
|
||||
name: Duplicati
|
||||
url: http://wansrv01.dev.lan:8202
|
||||
- type: weblink
|
||||
name: Hosting
|
||||
url: https://wansrv01.dev.lan:9443
|
||||
- type: weblink
|
||||
name: Git
|
||||
url: https://git.limbosolutions.com/limbosolutions.com/wiki.limbosolutions.com
|
||||
title: wiki.limbosolutions.com
|
||||
```
|
||||
BIN
doc/administration/images/git-homessistant-dashboard.png
Normal file
BIN
doc/administration/images/git-homessistant-dashboard.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
Reference in New Issue
Block a user