Topic "synchronize to new folder"

Author Message
Starmark
[View user's profile]

Joined: 2008-08-29
Posts: 4
Hi all,
I want to synchronize to local in new folder. It should download only latest files from the remote to new folder. Please help me for this.

Thanks,
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Starmark wrote:
I want to synchronize to local in new folder.

What does it mean "synchronize in new folder"?
_________________
Martin Prikryl
Starmark
[View user's profile]

Joined: 2008-08-29
Posts: 4
prikryl wrote:
Starmark wrote:
I want to synchronize to local in new folder.

What does it mean "synchronize in new folder"?


Hi,
I mean every day i am going to download from ftp. It should download new files in new folder (current date folder).Please help me in this.

Thanks
Avinash
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
OK, How can it tell which files are new if it has nothing to compare against?
_________________
Martin Prikryl
Starmark
[View user's profile]

Joined: 2008-08-29
Posts: 4
prikryl wrote:
OK, How can it tell which files are new if it has nothing to compare against?



Ya... But i need to read only downloaded files from my program and i will not be knowing the file names even.Can u suggest me is there any way to take latest files.

Thanks
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Starmark wrote:
Ya... But i need to read only downloaded files from my program and i will not be knowing the file names even.Can u suggest me is there any way to take latest files.

So then you have to remember in your program, what files you have processed already and process only the new one.
_________________
Martin Prikryl
Hemebond

Guest


I'm tryin to do something very similar to the original poster. I am wanting to
  1. compare a local and remote directory
  2. download the changes to a new local directory
  3. check that the download was successful
  4. copy the new files over the old local files
I need to do this because quite often the synchronisation will fail and the files I'm synchronising include the WinSCP INI and script files.

I'm currently looking at backing up the current directory before synchronising and then reverting changes if WinSCP fails. I think that's a better approach anyway.

Would be nice if the WinSCP CLI had a way to recursively compare directories and output the different files.[/list]
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Hemebond wrote:
Would be nice if the WinSCP CLI had a way to recursively compare directories and output the different files.[/list]

I believe that you will find some tools for that.
_________________
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