Author |
Message |
piet200
Joined: 21 May 2015 Posts: 33
|
Posted: Thu May 21, 2015 10:40 am Post subject: Advanced filtering options |
|
|
Hi,
I need to use some advanced filtering options to get a sync job to work fine.
I would like to achieve the following.
Source is set to C:\
Then I have an included filter for 'c:\folder1' and 'c:\folder2'
Within these folders (folder 1 and 2) I only want to synchronize 'subsub2'
How do I put this is a filter ?
Note: this is just an example, the folder structure is much, much larger, so just including the 2 paths of the example above is not an option.
c:\folder1
\sub1
\subsub1
\subsub2
\sub2
\subsub1
\subsub2
c:\folder2
\sub1
\subsub1
\subsub2
\sub2
\subsub1
\subsub2
c:\folder3
\sub1
\subsub1
\subsub2
\sub2
\subsub1
\subsub2 |
|
Back to top |
|
|
TGRMN Software Site Admin
Joined: 10 Jan 2005 Posts: 8758
|
Posted: Fri May 22, 2015 4:15 am Post subject: |
|
|
Hi,
try
include c:\folder1\
exclude c:\folder1\*
include c:\folder1\subsub2\
or try just
include c:\*\subsub2\
to capture all
thanks _________________ --
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com |
|
Back to top |
|
|
piet200
Joined: 21 May 2015 Posts: 33
|
Posted: Fri May 22, 2015 7:23 am Post subject: . |
|
|
Hi,
Thank you for your suggestions.
I do have a few comments to the suggested options:
First the actual situation:
The mentioned folder structure is just an example, the reality is that I have a couple of thousands of root folders, let’s say 2000. (and I want to synchronize about 400 of them).
Within these root folders there are about 40 sub-folders which need to be included.
This will give the following result with the 2 mentioned options:
Option 1:
• Create 400 include rules to include the root folders;
• Create 400 exclude rules to exclude everything within the root folders;
• Create 40 include rules per root folder (for each sub-folder).
The result is that I have to setup 2 x 400 = 800 rules for the root folders and 40 x 400 = 16000 rules for the sub-folders.
I doubt if the application supports this many rules. Besides that it is not easy to manage. If a new root folder needs to be added I need to add 42 rules.
Option 2:
Does not provide the correct filtering options. This would include all 2000 root folders and not just the 400 which are necessary.
Currently the in-house developed application does the following:
Create one list of included folders, so root folders and sub folders.
Example:
C:\folder1
C:\folder2
\subsub2
This gives me the results I need. So if I have 400 root folders, the total amount of lines will be 401.
If I need to include 40 sub or sub-sub folders I need to add 40 lines, which will give a total of 440 lines.
This is much less than 16000 !
Is there any way to get about the same amount of lines ? |
|
Back to top |
|
|
TGRMN Software Site Admin
Joined: 10 Jan 2005 Posts: 8758
|
Posted: Sat May 23, 2015 10:00 am Post subject: |
|
|
Hi , actually I think also ViceVersa supports the filtering as your internal application, e.g.
C:\folder1
C:\folder2
subsub2
thanks _________________ --
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com |
|
Back to top |
|
|
piet200
Joined: 21 May 2015 Posts: 33
|
Posted: Wed May 27, 2015 11:16 am Post subject: |
|
|
Hi,
I have tested it with the configuration above, first I added c:\folder1 and c:\folder2 to the included folder filter.
This works as it should.
Although after adding the 'subsub2' line, it doesn't change the result. so all content of folder1 and folder2 is copied and not only ' subsub2'.
Any way to achieve this withouth adding the subsub2 to the 2 paths like c:\folder1\subsub2 and c:\folder1\subsub2 ?
The relative folder filter does seem to work, because if I only use the include filter: *\subsub2\* it includes all folders on any existing location with the name subsub2.
But when I add an absolute filter to it, such as: c:\folderx\ in combination with the relative filter, it doesn't work.
It's the combination I need, absolute folder filter with a relative filter.
Any way to get this working ? |
|
Back to top |
|
|
TGRMN Software Site Admin
Joined: 10 Jan 2005 Posts: 8758
|
Posted: Thu May 28, 2015 12:04 am Post subject: |
|
|
Hi, try this:
subfolder filters include:
C:\folder1
C:\folder2
etc.
plus file filter include:
*\subsub2\**
** means "..and all subfolders".
thanks _________________ --
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com |
|
Back to top |
|
|
|