Re: problems with File mask:
OK, so please post a real-life example (full command).
Here is the problem I am struggling with right now:
I want to only synchronize files in directory \lib\pkp\, so I set File mask to:
\lib\pkp\
This will not find any changes in this directory, but it will report changes in the main directory \.
For that you do not use file mask (technically speaking, you can, but it's very ineffective). To specify a root of synchronization, use parameters of thesynchronize
command (orkeepuptodate
).
Here is the problem I am struggling with right now:
I want to only synchronize files in directory \lib\pkp\, so I set File mask to:
\lib\pkp\
This will not find any changes in this directory, but it will report changes in the main directory \.
synchronize
command (or keepuptodate
).
# Synchronisation Internet<->Lokal
# Automatically answer all prompts negatively not to stall
# the script on errors
option echo on
option batch on
# Disable overwrite confirmations that conflict with the previous
option confirm off
#
option include "irr*; /*"
# Connect
open FTP
# Synchronize
synchronize both "E:\localpath\" /var/www/files/
# Disconnect
close
# Exit WinSCP
exit