Page 1 of 1

Need a JSON/URL for backup database and return .db file

Posted: Saturday 01 July 2017 22:11
by andoamin
Hey There
i need a JSON/URL for backup database and it will get me a file like using camera snapshot

Code: Select all

http://127.0.0.1:8080/camsnapshot.jpg?idx=1
and it will give me a photo
thanks a lot

Re: Need a JSON/URL for backup database and return .db file

Posted: Sunday 02 July 2017 0:09
by Nautilus
Have a look at this: https://www.domoticz.com/wiki/Daily_bac ... ternal_hdd
the url you are looking for is http://$DOMO_IP:$DOMO_PORT/backupdatabase.php, the example script above uses curl to fetch it and save to /tmp ->

Code: Select all

curl -s http://$DOMO_IP:$DOMO_PORT/backupdatabase.php > /tmp/$BACKUPFILE