Topic "synchronize remote issue"

Author Message
justcallmedanny

Guest


Hi,

I'm trying to setup a scripted job to copy some log files from A to B however I'm having some issues... see the details below.


The script I am running is this -

"open sftp://username@x.x.x.x/

synchronize remote D:\Directory\Backups\2015_08_09\Directory\2015_08_09\Directory

exit"


The problem I have is that the file path changes daily to include a date in the folder path.

I've tried using the path masks but I get the following message from the WinSCP console - "Nothing to Synchronize"

If I enter the exact file path the directory sync's without problem.


Thanks
justcallmedanny
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24994
Location: Prague, Czechia
If it is today's date, you can use:

synchronize remote D:\Directory\Backups\%TIMESTAMP#yyyy_mm_dd%\Directory\%TIMESTAMP#yyyy_mm_dd%\Directory

See https://winscp.net/eng/docs/scripting#timestamp

If not, you have to generate the WinSCP script.

For examples, see:
https://winscp.net/eng/docs/script_download_timestamped_filename
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