Community discussions

MikroTik App
 
notsoimportant
just joined
Topic Author
Posts: 1
Joined: Thu Jan 25, 2024 3:00 pm

failure: invalid dst-path during FTP

Thu Jan 25, 2024 3:14 pm

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!
Last edited by tangent on Thu Jan 25, 2024 4:00 pm, edited 1 time in total.
Reason: switched command sample's bold-italic to code tag
 
notsoimportant
just joined
Topic Author
Posts: 1
Joined: Thu Jan 25, 2024 3:00 pm

Re: failure: invalid dst-path during FTP

Tue Jan 30, 2024 6:45 am

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"
Last edited by notsoimportant on Tue Jan 30, 2024 6:48 am, edited 2 times in total.

Who is online

Users browsing this forum: No registered users and 16 guests