Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: synchronize files from remote to local

This is probably wrong:

[m:25b8d138de]get /WPTest2* F:\website_backups\WPTest2\*
/synchronize // "F:\website_backups\WPTest2" /WPTest2[/m:25b8d138de]

Should be something like:

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

See https://winscp.net/eng/docs/scriptcommand_synchronize
jimbo76

synchronize files from remote to local

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?