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

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
andoamin
Posts: 1
Joined: Saturday 01 July 2017 22:05
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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
Nautilus
Posts: 722
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Finland
Contact:

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

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest