Synchronize script problem with include mask

Advertisement

Advertisement

JanM
Guest

problems with File mask:

I spent hours trying to figure our how the masks are working, but with a very little success. Either they are completely counterintuitive or they are just not working properly.

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

Any help would be appreciated.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
31,264
Location:
Prague, Czechia

Re: problems with File mask:

JanM wrote:

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 the synchronize command (or keepuptodate).
_________________
Martin Prikryl

Reply with quote

JanM
Guest

Re: problems with File mask:

Well, that was an example, which doesn't work for me and I need to make it work to do something more complicated. What I want is to synchronize about 20 folders at the same time. I don't want to go to each folder to run synchronization and I don't want to synchronize the root folder, because that takes over 2 minutes (there is like 2000 folders).

martin wrote:

JanM wrote:

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 the synchronize command (or keepuptodate).

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
31,264
Location:
Prague, Czechia

Re: problems with File mask:

OK, so please post a real-life example (full command).
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum