I am trying to sync files from my computer to a work server everytime I save them. I have paired the folder structure on my computer yet I cannot seem to get the filters to fire properly.
Question: How do I only sync a named folder and file extension 3 levels down?
I want to only sync files with the extension .dwg in a folder called DRAWINGS. The Drawings folder will always be located 3 levels into the drive for example:
C:
C:\Client 1\Job1\DRAWINGS\*.dwg
C:\Client 1\Job2\DRAWINGS\*.dwg
C:\Client 1\Job3\DRAWINGS\*.dwg
C:\Client 2\Job1\DRAWINGS\*.dwg
C:\Client 3\Job1\DRAWINGS\*.dwg
C:\Client 3\Job2\DRAWINGS\*.dwg
My include filters currently look like this
*.dwg
\*\*\RFD DRAWINGS\
my exclude is blank (other than the default \System Volume Information\ etc)
FFS seems to scan every file extension and folder from the first level. Im thinking this may be due to the first widcard used in the filter but im not sure.
Question: How do I only sync a named folder and file extension 3 levels down?
Thank you.
ONLY SYNC FILE EXTENSION IN NAMED FOLDER 3 LEVELS DOWN HELP
- Posts: 2
- Joined: 12 Nov 2020
-
- Posts: 2947
- Joined: 22 Aug 2012
As per the Manual
Note that your example does only show "DRAWINGS", not "RFD DRAWINGS"
I will assume your left base location is "C:\"
If you want to include only *.dwg-files from only "DRAWINGS" folders, you should include just "*\DRAWINGS\*.dwg" (without the quotes).
If you also can have one or more DRAWING folders less than two levels deep, you need to use an Include Filter of "\*\*\DRAWINGS\*.dwg" instead of "*\DRAWINGS\*.dwg". This rule will only include DRAWING folders (at least) two levels deep.
1) The above Include Filter rules will include all *.dwg files in the DRAWING folders and any of their subfolders. If that is a problem, this can be overcome by adding an Exclude Filter line "*\DRAWINGS\*\*.dwg". This rule will exclude any *.dwg-files that are not in the root of a DRAWING folder.
2) It will also include any *.dwg files in any DRAWING folders that may exist more than two levels deep. If that is a problem, this can be overcome by adding an Exclude Filter line "\*\*\*\DRAWINGS\". This rule will exclude any DRAWINGS folders (and all their content) more than two levels deep.
So, your present Include Filter will include all *.dwg-files anywhere in the folder structure, PLUS all "RFD DRAWINGS" folders that are at least two levels deep and their content (incl.subfolders).Files and directories are only considered for synchronization if they pass all filter rules. They have to match at least one entry in the include list and none of the entries in the exclude list
Note that your example does only show "DRAWINGS", not "RFD DRAWINGS"
I will assume your left base location is "C:\"
If you want to include only *.dwg-files from only "DRAWINGS" folders, you should include just "*\DRAWINGS\*.dwg" (without the quotes).
If you also can have one or more DRAWING folders less than two levels deep, you need to use an Include Filter of "\*\*\DRAWINGS\*.dwg" instead of "*\DRAWINGS\*.dwg". This rule will only include DRAWING folders (at least) two levels deep.
1) The above Include Filter rules will include all *.dwg files in the DRAWING folders and any of their subfolders. If that is a problem, this can be overcome by adding an Exclude Filter line "*\DRAWINGS\*\*.dwg". This rule will exclude any *.dwg-files that are not in the root of a DRAWING folder.
2) It will also include any *.dwg files in any DRAWING folders that may exist more than two levels deep. If that is a problem, this can be overcome by adding an Exclude Filter line "\*\*\*\DRAWINGS\". This rule will exclude any DRAWINGS folders (and all their content) more than two levels deep.
- Posts: 2
- Joined: 12 Nov 2020
Thankyou for your detailed reply, I didnt see my notifications prompting me that you had replied, so apologies for being late.
I will try this when I am back at work tommorow. I understand your examples so hopefully it will go well.
Thanks again.
I will try this when I am back at work tommorow. I understand your examples so hopefully it will go well.
Thanks again.