Reputation: 686
Why can't the folder be found? I double checked that it exists.
#!/bin/bash
echo "This will sync the background_docs folder"
lftp ftp://user:[email protected] -e "mirror -r /cygdrive/c/Users/usera/Desktop/test_folder/ --only-missing -e;exit"
Upvotes: 5
Views: 6729
Reputation: 686
Could that be your problem: "mirror - Mirror specified source directory to local target directory" If I read that correctly then you are looking for the /cygdrive/c/.... dir on the FTP server which probably does not have a cygwin-based FTP server. Try -R if you want to put files to the server, or write "mirror -r server-dir /cygdrive/c/..." – HelmuthB
Upvotes: 0
Reputation: 393134
I suggest looking at cygpath
cygpath -w
converts to windows path
cygpath -u
converts to unix path
Upvotes: 1