I’m using fetch command to upload MT configuration every 15 days on more than thirty routers.
I wrote a script for creating a backup file, set up the scheduler…so, everything is automated.
The problem is that the backup file isn’t transferred in whole. I tried several times to upload backup file to FTP server and I got different sizes of the same file, and non of them is as it should be
I tried with ascii=no/yes (probably binary/ascii?), with Windows server FTP server and ProFTPd (Centos linux).
This type of file should be transferred in binary mode. Does ascii=no option activate binary mode?
I tried with just typing fetch command in CLI (to eliminate possible script error):
2x routerboard (RB750G) with RoS 5.11 are working fine (each uploaded export file to FTP is OK - whole)
1x routerboard (Rb493G) with RoS 5.24 doesn’t work properly (uploaded files to FTP are incomplete).
Our scheduled export script (generates export.rsc) has delay 5s before/after export command and also before/after /tool fetch.
In extended proftpd log i see, that when file is incomplete, is missing “STOR” command and in log. Last is “PASV” command.
I verified, that generated export.rsc is always with same content (except datetime in header). Problem must be in /tool fetch mode=ftp in RoS > 5.11.
You are right. With vsftp the transffered files are complete.
vsftp is a lot simplier FTP server than ProFTP and Win FTP. These two have a lot more options that probably needs fine tuning to get it work…