Synchronize all subdirectories with criteria

Advertisement

Moy
Guest

Synchronize all subdirectories with criteria

Hello,

I want to save an entire site, except certain directories. I run a script the first time, it saves everything correctly. But if I run the script, the site is still saved between, ignoring the parameter "criteria". Why ?

option batch abort
My script:
option reconnecttime 5
option include "/*/*|Sve/;_*/"
synchronize local -delete -criteria=either "S:\MyLocalDirectory\" /MyServerDirectory

Thanks for your help.

Reply with quote

Advertisement

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

Re: Synchronize all subdirectories with criteria

Moy wrote:

ignoring the parameter "criteria"
How does the "ingnoring" manifest?

Reply with quote

Moy
Guest

It does not help me :(

When "Criteria" is "size", it also copies the entire site every time.
option batch abort
option reconnecttime 5
option include "/*/*|Sve/;_*/"
synchronize local -delete -criteria=size "S:\Sauvegarde sites en ligne\MyChessNet_Donnees\MyChessNet\" /MyChessNet

The Log is :
2011-12-15 18:52:05.550 --------------------------------------------------------------------------
. 2011-12-15 18:52:05.550 WinSCP Version 5.0.5 (Build 1782) (OS 5.1.2600 Service Pack 3)
. 2011-12-15 18:52:05.550 Configuration: D:\Utils\Winscp\WinSCP.ini
. 2011-12-15 18:52:05.550 Local account: VENDOME\Anthony
. 2011-12-15 18:52:05.550 Login time: jeudi 15 décembre 2011 18:52:05
. 2011-12-15 18:52:05.550 --------------------------------------------------------------------------
. 2011-12-15 18:52:05.550 Session name: mychessnet (Modified stored session)
. 2011-12-15 18:52:05.550 Host name: ftpperso.free.fr (Port: 21)
. 2011-12-15 18:52:05.550 User name: mychessnet (Password: Yes, Key file: No)
. 2011-12-15 18:52:05.550 Tunnel: No
. 2011-12-15 18:52:05.550 Transfer Protocol: FTP
. 2011-12-15 18:52:05.550 Ping type: C, Ping interval: 30 sec; Timeout: 5 sec
. 2011-12-15 18:52:05.550 Proxy: none
. 2011-12-15 18:52:05.550 FTP: FTPS: None; Passive: Yes [Force IP: No]
. 2011-12-15 18:52:05.550 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2011-12-15 18:52:05.550 Cache directory changes: Yes, Permanent: Yes
. 2011-12-15 18:52:05.550 DST mode: 1
. 2011-12-15 18:52:05.550 --------------------------------------------------------------------------
. 2011-12-15 18:52:05.550 Connecting to ftpperso.free.fr ...
. 2011-12-15 18:52:05.566 Connected with ftpperso.free.fr. Waiting for welcome message...
< 2011-12-15 18:52:05.628 220 Serveur de mise a jour des pages perso de Free.fr version [Apr 27 2011 11:43:55]
> 2011-12-15 18:52:05.628 USER mychessnet
< 2011-12-15 18:52:05.675 331 Password required for mychessnet.
> 2011-12-15 18:52:05.675 PASS ******
< 2011-12-15 18:52:05.706 230 User mychessnet logged in.
> 2011-12-15 18:52:05.706 SYST
< 2011-12-15 18:52:05.738 215 UNIX Type: L8
> 2011-12-15 18:52:05.738 FEAT
< 2011-12-15 18:52:05.769 500 'FEAT': command unrecognized.
. 2011-12-15 18:52:05.769 Connected
. 2011-12-15 18:52:05.769 --------------------------------------------------------------------------
. 2011-12-15 18:52:05.769 Using FTP protocol.
. 2011-12-15 18:52:05.769 Doing startup conversation with host.
> 2011-12-15 18:52:05.769 PWD
< 2011-12-15 18:52:05.800 257 "/" is current directory.
. 2011-12-15 18:52:05.800 Getting current directory name.
. 2011-12-15 18:52:05.800 Startup conversation with host finished.
< 2011-12-15 18:52:05.800 Script: Active session: [1] mychessnet
> 2011-12-15 18:52:05.800 Script: option batch abort
< 2011-12-15 18:52:05.800 Script: batch abort
> 2011-12-15 18:52:05.800 Script: option reconnecttime 5
< 2011-12-15 18:52:05.800 Script: reconnecttime 5
> 2011-12-15 18:52:05.800 Script: option include "/*/*|Sve/;_*/"
< 2011-12-15 18:52:05.800 Script: include /*/*|Sve/;_*/
> 2011-12-15 18:52:05.800 Script: synchronize local -delete -criteria=size "S:\Sauvegarde sites en ligne\MyChessNet_Donnees\MyChessNet\" /MyChessNet
< 2011-12-15 18:52:05.800 Script: Comparing...
. 2011-12-15 18:52:05.800 Collecting synchronization list for local directory 'S:\Sauvegarde sites en ligne\MyChessNet_Donnees\MyChessNet\' and remote directory '/MyChessNet', mode = 1, params = 1539
. 2011-12-15 18:52:05.816 Retrieving directory listing...
> 2011-12-15 18:52:05.816 CWD /MyChessNet/
< 2011-12-15 18:52:05.847 250 CWD command successful.
> 2011-12-15 18:52:05.847 PWD
< 2011-12-15 18:52:05.878 257 "/MyChessNet" is current directory.
> 2011-12-15 18:52:05.878 TYPE A
< 2011-12-15 18:52:05.910 200 Type set to A
> 2011-12-15 18:52:05.910 PASV
< 2011-12-15 18:52:05.941 227 Entering Passive Mode (212,27,63,3,224,52).
> 2011-12-15 18:52:05.941 LIST -a
< 2011-12-15 18:52:05.972 150 Opening ASCII mode data connection for file list
< 2011-12-15 18:52:06.144 226 Transfer complete.
. 2011-12-15 18:52:06.144 Directory listing successful
< 2011-12-15 18:52:06.160 Script: Synchronizing...
. 2011-12-15 18:52:06.160 Synchronizing local directory 'S:\Sauvegarde sites en ligne\MyChessNet_Donnees\MyChessNet\' with remote directory '/MyChessNet/', params = 1539
. 2011-12-15 18:52:06.160 File: "/MyChessNet/1044649334"
< 2011-12-15 18:52:06.160 Script: Local 'S:\Sauvegarde sites en ligne\MyChessNet_Donnees\MyChessNet' <= Remote '/MyChessNet'
. 2011-12-15 18:52:06.160 Retrieving directory listing...
> 2011-12-15 18:52:06.160 CWD /MyChessNet/1044649334/
< 2011-12-15 18:52:06.191 250 CWD command successful.
> 2011-12-15 18:52:06.191 PWD
< 2011-12-15 18:52:06.222 257 "/MyChessNet/1044649334" is current directory.
> 2011-12-15 18:52:06.222 TYPE A
< 2011-12-15 18:52:06.253 200 Type set to A
> 2011-12-15 18:52:06.253 PASV
< 2011-12-15 18:52:06.300 227 Entering Passive Mode (212,27,63,3,231,32).
> 2011-12-15 18:52:06.300 LIST -a
< 2011-12-15 18:52:06.331 150 Opening ASCII mode data connection for file list
< 2011-12-15 18:52:06.535 226 Transfer complete.
. 2011-12-15 18:52:06.535 Directory listing successful
. 2011-12-15 18:52:06.535 File: "/MyChessNet/1044649334/AvatarJ2.jpg"
. 2011-12-15 18:52:06.535 Copying "/MyChessNet/1044649334/AvatarJ2.jpg" to local directory started.
. 2011-12-15 18:52:06.535 Binary transfer mode selected.
. 2011-12-15 18:52:06.535 Starting download of /MyChessNet/1044649334/AvatarJ2.jpg
> 2011-12-15 18:52:06.550 TYPE I
< 2011-12-15 18:52:06.581 200 Type set to I
> 2011-12-15 18:52:06.581 PASV
< 2011-12-15 18:52:06.613 227 Entering Passive Mode (212,27,63,3,187,63).
> 2011-12-15 18:52:06.613 RETR AvatarJ2.jpg
< 2011-12-15 18:52:06.644 150 Opening BINARY mode data connection for AvatarJ2.jpg (4698 bytes)
< 2011-12-15 18:52:06.847 226 Transfer complete.
. 2011-12-15 18:52:06.847 Download successful

I fear this is a bug in WinSCP.

Reply with quote

Advertisement

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

Can you send me an email, so I can send you back a debug version of WinSCP to track the problem? Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.

Reply with quote

Advertisement

You can post new topics in this forum