I am trying to use ps
ftp.exe to copy files from an external SFTP site to a local UNC path.
The command I use is "ps
ftp.exe server1.xyz.com -b task.txt -l username
In my task.txt file, I have the following:
lcd "\\localserver\file path"
cd remote_file_path
mget "*.*"
Questions:
1. I am using -l to specify the username. How do I specify the password?
2. When I use mget "*.*", I am copying all files from the remote sftp server to my local file server.
Is there a way I can copy only the differential data to the local UNC path?
Please advise.
Many thanks.
You can use the -pw option or key pairs. For instance -
Try -
Open in new window