Page 1 of 1

failure: invalid dst-path during FTP

Posted: Thu Jan 25, 2024 3:14 pm
by notsoimportant
Hi everyone!
I have an FTP server hosted at 172.28.4.52 I am trying to upload files to "/backup/" but it shows an invalid destination path
Please note that this destination location is valid, the user has read and write permission. I have tested by using FTP client software, and Huawei switch and I didn't find any issues.
Looking forward to getting help from the community. Below is a script that I have tried on Mikrotik. It returns "failure: invalid dst-path".
/tool fetch upload=yes mode=ftp ascii=no src-path=/file/DHCP.rsc dst-path="/backup/DHCP.rsc" address=172.28.4.52 port=21 user=dontry password=Laptop#2022
Thank you!

Re: failure: invalid dst-path during FTP

Posted: Tue Jan 30, 2024 6:45 am
by notsoimportant
Issue resolved after knocking at Mikrotik support. They confirmed the destination path was correct but the source path was wrong. However, the router only returns the destination path is invalid. They informed me that /file/DHCP.rsc is wrong. It should be only /DHCP.rsc.

My final script was:
/tool fetch upload=yes mode=ftp ascii=no address=172.28.4.52 port=21 user=dontry password=Laptop#2022 src-path="/DHCP.rsc" dst-path="/backup/DHCP.rsc"