Existing files only command line syntax

Advertisement

kleach
Joined:
Posts:
6

Existing files only command line syntax

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: Existing files only command line syntax

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...

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.

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

Reply with quote

Advertisement

You can post new topics in this forum