download backup from other devices to mikrotik

Hello,

I have a mikrotik and a ubiquity device.
I want to write a script so i can download from my mikrotik device the ubiquity backup.
I can log in from mikrotik to ubiquity with telnet or ssh but i don’t know what to do after to download the backup file.
Can anyone help me???

anyone???

If the backup on the Ubiquiti device can be accessed via FTP or HTTP you can use “/tool fetch”.