Topic "Existing files only command line syntax"

Author Message
kleach
[View user's profile]

Joined: 2009-10-06
Posts: 6
I am running an automated script to up sync files in a directory tree.
The source has gone crazy and has terabytes of garbage files.
I want to build a new directory tree locally and just make/"touch" an empty file with the proper name and old date..
then I wan to update JUST THE FILES in my new directory tree with what is at the source.. if they are different.

I see in the doc a reference to "Existing files only" but do not see the command line or script option ?

What am I missing?

point 2: I would also like to request a feature... I think it would be a nice feature to supply a text file containing the directories and file names to sync. It would require new options on the command line like -sourcefilelist and -targetfilelist SourceFilelist would contain something like:
\usr\var\images\a\awsome.jpg
\usr\var\images\a\awful.jpg
\usr\var\images\f\fancy.jpg
etc..
it would give the ability to build a list of the exact files you need to sync that do not fit in a wildcard or other common selection process.


point 3: The search feature on this web site (with chrome) does not work for me.. says loading with no results no matter what I search for.
Prophesix
[View user's profile]

Joined: 2015-08-25
Posts: 2
Location: USA
What os are you using? I had a similar issue with a few Windows directories and found that Xcopy did just the trick.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
kleach wrote:
I want to build a new directory tree locally and just make/"touch" an empty file with the proper name and old date..
then I wan to update JUST THE FILES in my new directory tree with what is at the source.. if they are different.

Sorry, I just do not understand what you are trying to do.

Anyway...

Quote:
I see in the doc a reference to "Existing files only" but do not see the command line or script option ?

There's no equivalent in scripting. But you can set the option in GUI as default and the script will use it.

Quote:
point 2: I would also like to request a feature... I think it would be a nice feature to supply a text file containing the directories and file names to sync. It would require new options on the command line like -sourcefilelist and -targetfilelist SourceFilelist would contain something like:
\usr\var\images\a\awsome.jpg
\usr\var\images\a\awful.jpg
\usr\var\images\f\fancy.jpg
etc..
it would give the ability to build a list of the exact files you need to sync that do not fit in a wildcard or other common selection process.

You can do it like:
http://winscp.net/eng/docs/script_upload_file_list
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