I need help writing script which will create system backup and then upload file to remote https server.
Code: Select all
/system/backup/save name=mybackup
/tool fetch http-method=put mode=https http-data=[/file get [/file find name=mybackup.backup] contents] url="https://myserver.domain.com/" http-header-field="Content-Type: application/octet-stream"
However, it seems to me that issue is that variable limit to 4KB.
Can I somehow directly upload file? (Similar to src-path with FTPS ) ?
Thank you