Hi,
i search for a backup tool which will upload the pimatic config or defined folders to something like dropbox or a nas.
I cant find a tool like that.
Backup tool online/nas
Hi,
i search for a backup tool which will upload the pimatic config or defined folders to something like dropbox or a nas.
I cant find a tool like that.
@seelenbrokat
You can mount your nas share and create a rule like this
when its 00:00
execute "cp /home/pi/pimatic-app/config.json /media/NAS/Backup/`date +%Y-%m-%d`.json"
I am doing the same only with FTP.
WHEN Start button is pressed or its friday and 22:00
THEN
execute "cp /home/pi/pimatic-app/config.json /home/pi/Backup/`date +%Y-%m-%d`.json" and execute "ftp-upload -h 192.168.0.10 -u USER --password PASS -d /Backup_internal/Backup_pimatic/ /home/pi/Backup/`date +%Y-%m-%d`.json" after 1s and execute "rm /home/pi/Backup/`date +%Y-%m-%d`.json" after 5s
Follow my domotica project on http://maredana.nl
I wrote a howto some time ago: https://forum.pimatic.org/topic/2400/easy-automatic-backup-and-semi-automatic-restore-of-your-pimatic-server
@magic-tune said in Backup tool online/nas:
date +%Y-%m-%d
i alway get a error message:
error [pimatic]: rule config-backup error executing an action: Array.isArray(tags)
Hi,
this is a format error. Here is my execute comand.
execute "cp /home/pi/pimatic-app/config.json /home/Administrator/BackupPimatic/config-{date("YYYY-MM-DD")}.json" and execute "cp /home/pi/pimatic-app/pimatic-database.sqlite /home/Administrator/BackupPimatic/pimatic-database-{date("YYYY-MM-DD")}.sqlite"
Nice Day.
Pimatic, my hobby.