Backup the configs of all your Tasmota devices
- tasmota 9.0 status change
- recording mac addresses
- tasmota 8.3 devicename support
- add dark mode
- fix special chars in username/password
- use timezone for displayed times in docker/HA installs
- cron to run backup-all in docker for HA
- Add single devices
- Discover devices
- Backup single devices
- Backup all devices
- Remove devices
- Download individual backups
- No duplicates (based on IP)
Go into home assisant, then the supervisor Click on the Add-On Store paste in http://github.com/danmed/TasmoBackupV1 into the Add new repository via url box, and click add Scroll down near the bottom and locate TasmoBackup
More info at: https://www.home-assistant.io/hassio/installing_third_party_addons/
version: '2'
services:
tasmobackup:
ports:
- '8259:80'
volumes:
- ./data:/var/www/html/data
environment:
# MYSQL env's are not needed if you are using sqlite
- MYSQL_SERVER=IPADDRESS
- MYSQL_USERNAME=USERNAME
- MYSQL_PASSWORD=PASSWORD
# change below to mysql if you don't want to use sqlite
# you will need to have a mysql server (set above) with a blank database already created.
- DBTYPE=sqlite
# if using Mysql remove the data/ from the below line
# if using Sqlite the data/ is required!
- DBNAME=data/tasmobackup
container_name: TasmoBackup
image: 'danmed/tasmobackupv1'
SQLITE:
docker run -d -p 8259:80 -v ./data:/var/www/html/data -e DBTYPE=sqlite -e DBNAME=data/tasmobackup --name TasmoBackup danmed/tasmobackupv1
Note : pay attention to the difference's between the sqlite and mysql database names.
MYSQL:
docker run -d -p 8259:80 -v ./data:/var/www/html/data -e DBTYPE=mysql -e MYSQL_SERVER=192.168.2.10 -e MYSQL_USERNAME=root MYSQL_PASSWORD=password -e DBNAME=tasmobackup --name TasmoBackup danmed/tasmobackupv1
git clone https://github.com/danmed/TasmoBackupV1
cd TasmoBackupV1
mkdir data
chown www-data data
cp config.inc.php.example data/config.inc.php
Edit data/config.inc.php if you wish to change to using mysql database instead of sqlite. Make sure the data directory is owned by the user php runs as, or it will not be able to save your backups or create/update the sqlite file
Run the upgrade.php script to initialize your new database, or to upgrade your existing one when changing versions.
- backupall.php exists to do literally that.. Schedule this with your chosen means (nodered, curl, scheduled tasks etc)
- Background scanning
- Handle device changes ip address
- Parse backup configs