Topic "synchronize files from remote to local"

Author Message
jimbo76
[View user's profile]

Joined: 2014-04-26
Posts: 1
Location: UK
Hi there,

using WinSCP 5.5.3,very happy with what this does.

I am using to backup website files to my local computer, I am trying to configure backups to synchronize changes if they are made on my local machine or the remote server, I am unsure how to configure this from the documentation.

I currently have this in a txt file which is then used via task scheduler to call upon on windows log on:

option batch on
option confirm off
open ftp://example@domain.co.uk:password@ftp.example.co.uk
cd backups
option transfer binary
get /WPTest2* F:\website_backups\WPTest2\*
/synchronize // "F:\website_backups\WPTest2" /WPTest2
exit

is this correct?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
This is probably wrong:

get /WPTest2* F:\website_backups\WPTest2\*
/synchronize // "F:\website_backups\WPTest2" /WPTest2


Should be something like:

synchronize both "F:\website_backups\WPTest2" /WPTest2

See https://winscp.net/eng/docs/scriptcommand_synchronize
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