Topic "synchonize always processes .txt files"

Author Message
wysocki
[View user's profile]

Joined: 2015-07-26
Posts: 2
Location: Los Angeles area
I'm running a script that just copies one folder (plus its subfolders) to my ftp server. Here's the command line:

open ftp://xxx:yyy@zzz.com -rawsettings Utf=1
cd /home/backup
synchronize remote -mirror -delete -criteria=either -transfer=automatic "d:\Chaos Data" "Chaos Data"

Strangely, any files with a .txt extension ALWAYS get processed, even if I run the script twice in succession. It may also be that the .txt files are processed ascii whereas all the other files are binary, if that makes a difference. The txt files still have the same datestamps and sizes so should not be processed. Right?
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
Size of a text file changes during ascii/text mode transfer.

As you opted to use a size as criteria when selecting files for synchronization, the text files will always be considered different.
wysocki
[View user's profile]

Joined: 2015-07-26
Posts: 2
Location: Los Angeles area
Ahh, of course, Thanks! I understand that ASCII mode changes the EOL characters (and other encoding) to handle the difference in file systems. But if I'm only doing FTP purely for backup purposes (never opening the files on the target system), wouldn't BINary be fine for all files?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
Yes it would. It's even more appropriate for backup purposes.
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