Topic "Frustrated. Script to sync ftp site"

Author Message
cootcraig
[View user's profile]

Joined: 03 Apr 2012
Posts: 2
Location: Pueblo, CO USA
I would like to use WinSCP to sync my local development site to a site hosted
at GoDaddy. I'm struggling to get a WinSCP script to open the ftp site with
user/password. Here is the script and the output.

winscp.com /script=sync.txt
--- sync.txt
option batch on
option confirm off
open user:password@ftp.mydomain.com/
pwd
exit
---

$ winscp.com /script=sync.txt
Searching for host...
Host does not exist
winscp> exit
Advertisements
prikryl
[View user's profile]
Site Admin
Joined: 10 Dec 2002
Posts: 19160
Location: Prague, Czech republic
Is it FTP or SFTP server? WinSCP defaults to SFTP.
_________________
Martin Prikryl
cootcraig
[View user's profile]

Joined: 03 Apr 2012
Posts: 2
Location: Pueblo, CO USA
prikryl wrote:
Is it FTP or SFTP server? WinSCP defaults to SFTP.


It's FTP. So how do I script to an FTP site?
prikryl
[View user's profile]
Site Admin
Joined: 10 Dec 2002
Posts: 19160
Location: Prague, Czech republic
open ftp://user:password@ftp.mydomain.com/

See
http://winscp.net/eng/docs/session_url
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License