Hello,
I'm developing my backup script (to be run in a Linux PC, not for Mikrotik RouterOS). I'm able to create a .backup file via the /rest API, but I cannot find a way to download it to my PC.
To create a backup I use:
POST /rest/system/backup/save
BODY: {"name": "myfilename.backup"}
and it works
Then I can see the full list of file with:
GET /rest/file?type=backup
from the above list I can have the ".id" field for each file.
The problem now is: how do I download the file I created ?
I have found that
POST /file/get
HEADER {'Content-Type': 'application/json'}
BODY { ".id": "*id_of_myfilename.backup", ".proplist": "contents" }
returns a JSON object with the file contents mixed with other strings and with encoding errors
Is there another way to access myfilename.backup and download it with an http GET request ?
Thank you