Opdrachtregel Allway Sync Uitsluitingsregel

Status
Niet open voor verdere reacties.

Senso

Meubilair
Lid geworden
13 jun 2016
Berichten
9.520
Besturingssysteem
W10 Pro en W11 Pro
Office versie
Office 2007 H@S en Office 2021 Prof Plus
Maak doel gelijk aan bron.
Taak is Sync station/schijf B: naar A:\Kopie-W7B\

Behalve/Uitgezonderd incl. submappen
de map B:\B_Norton Backups\
de map B:\B_Aomei Backups\
de map B:\B_Todo Backups\

Waarom? Omdat deze veel te groot en niet nodig zijn.

Ik begrijp de tekst niet die er staat en kom er niet uit. Wat moet ik daar exact invullen? Zie afbeelding.Uitsluitingsfilter Allway Sync.jpg

Edit:
Als ik de voorbeelden zie dan kom ik op
"\B_Norton Backups"
Deze is geprobeerd maar is niet goed.
 
Laatst bewerkt:
Er staat bij dat de paden relatief zijn tov het "synchronisatiepad".
Ik ken de software niet, maar hoe weet het programma welk pad dat is, immers je mag niet aangeven dat het om d:\image naar e:\backup bijvoorbeeld gaat...
Zodra het "synchronisatiepad" bekend is zal de software ook de uitsluitingen snappen die vanaf hetzelfde pad starten....dezelfde root hebben dus.
 
Dus jij kunt aan de hand van dat voorbeeld in de tekst ook niet komen tot een opdrachtregel? Of begrijp jij de tekst ook niet?

Het synchronisatiepad is het vetgedrukte:
Bron = station B:
Doel = station A:\Kopie-W7B
Dus alles incl. submappen en files gaat naar het doel.
Die drie genoemde mappen moeten dus incl. submappen en alle files uitgezonderd worden.

Ik begrijp niet dat Allway Sync geen simpel voorbeeld geeft.
 
Laatst bewerkt:
Code:
How to filter files and folders
Inclusion and exclusion filters allow you to specify which files and folders to synchronize.

Inclusion filters 
Only the files and folders that match at least one of these filters are synchronized by the job. If no inclusion filters are specified, all files and folders are included. 
Exclusion filters 
Files and folders that match at least one of these filters are not synchronized by the job. 
You can create filters in either basic or advanced mode. In basic mode, you specify a file-path pattern. In advanced mode you can build a file filter that includes additional criteria including size, creation date and file status.

How to add a filter
Step 1: In the Options window, navigate to and select the Profile Settings > [Job name] > Inclusion and Exclusion Filters menu item. 
  
Step 2: Click on the Add New button at the bottom of either the inclusion or exclusion filter list. 
  
Step 3: Type a file name or a file-path pattern in the line named File Name Filter and press the Enter keyboard button. 
  
Step 4:
(optional) Press the Advanced button to switch to the advanced-mode filter dialog and complete the filter specification. 
  
Finish You've added one file filter. To collapse the filter body click on the minus sign to the left of the filter (It will be turned to plus sign). Add another filter, or press the Apply button at the bottom of the Options window. 
  

How to edit a filter
Click on the plus sign to the left of the filter. You can then change the filter specification. To collapse the filter body click on the minus sign to the left of the filter

How to delete a filter
Press the Delete Filter button to the right of the filter.

How do filters work?
A file is synchronized only if it matches at least one file inclusion filter and does not match any file exclusion filter. Folders are treated very much like files--a folder is synchronized (that is, the folder itself is propagated) only if it matches at least one folder inclusion filter and does not match any folder exclusion filter. If a folder is synchronized, its contents (the files and folders it contains) are then considered for synchronization, based on how those items match, or don't match, the job's filters. Items contained in excluded folders are not considered for synchronization.

Correct specification of file-path patterns in a filter
All file and folder names in filters are paths inside the synchronization root.

The term synchronization root (sync root) refers to a top-level folder specified as the synchronized folder on any side of a synchronization job. For example, if you want to synchronize "c:\My Documents\Books\" with "d:\My Favourite Books\" these two folders are the synchronization roots.

A filter file-path pattern beginning with "\" applies only at the synchronization root and does not apply to its subfolders. Filter file-path patterns that are not tied to the synchronization root apply at the sync-root level and at all lower levels.

When you create an advanced filter, you can specify how file-path patterns are applied to the path of a given file or folder. Four choices are available: 

If you select File only or Folder only, the file-path pattern you specify is compared only with the file or folder part of the path under consideration. If you select Files and folders, the file-path pattern you specify is compared with both the file and folder part of the path under consideration, and considered a match if either the file or folder matches. 
File only 
The file-path pattern is compared only against the file portion of the path under consideration. 
Folder only 
The file-path pattern is compared only against the folder portion of the path under consideration. 
Files and folders 
The file-path pattern is compared independently against both the file and folder portions of the path under consideration. The filter matches if either comparison matches. 
File mask in subfolders
The file-path pattern is compared against the folder and file names combined as a single entity. 

Examples: Synchronization root c:\My Documents\Books\ <-->  d:\My Favourite Books\ 
Corresponding Files c:\My Documents\Books\New\book1.txt <-->  d:\My Favourite Books\New\book1.txt 
Path from the sync root \New\book1.txt 
File matches the filter \New\*.txt The file is in the subfolder "New" of the sync root and has a "txt" extension 
book1.txt The file is inside of the sync root. File matches only if the "New" folder matches some filter 
*.txt The file is inside of the sync root and has a "txt" extension. File matches only if the "New" folder matches some filter 
\*\*.txt The file is in a subfolder of the sync root and has a "txt" extension 
New\book1.txt The file is in the subfolder "New" which is inside of the sync root 
 
File does not match the filter \book1.txt The file is not in the sync root 
\*.txt The file is not in the sync root 
\*\*\book1.txt The file is not in a sub-sub-folder of the sync root 
\Books\New\book1.txt Folder "Books" is not inside of the sync root 
c:\My Documents\Books\New\book1.txt Drive c:\ is not inside of the sync root 
 


Examples of typical filters
File name Apply to Matches 
* Files and folders All files and folders 
*.* Files only All files 
\folder\*.ext Files only All files with "ext" extension in "folder" directory, without subfolders 
* Folders only All subfolders of the synchronization root 
folder Folders only "folder" directories anywhere in the sync root 
\folder Folders only "folder" subdirectory of the sync root 
\folder\subfolder Folders only "subfolder" subdirectory of "folder" subdirectory of the sync root 
*.ext Files in subfolders All files with "ext" extension, including subfolders 
folder\*.ext Files in subfolders All files with "ext" extension in "folder" directory, including subfolders 
\folder\*.ext Files in subfolders All files with "ext" extension in "folder" subdirectory of the sync root, including subfolders  
*  Files and folders  All files and folders in the sync root and any of its subfolders 
*.*  Files only  All files in the sync root and any of its subfolders 
\folder\*.ext  Files only  All files with an extension of ext in the folder directory of the synchronization root 
*  Folders only  The sync root and all of its subfolders 
folder  Folders only  All folders named folder in the sync root, or any of its subfolders 
\folder  Folders only  The folder named folder in the sync root 
\folder\subfolder Folders only  The subfolder named subfolder in the folder named folder in the sync root 
*.ext  File mask in subfolders All files with an extension of ext in the sync root and any of its subfolders 
folder\*.ext  File mask in subfolders All files with an extension of ext in all directories named folder in the sync root directory and any of its subfolders 
\folder\*.ext  File mask in subfolders All files with an extension of ext in the folder folder in the sync root
 
Denk dat het gelukt is na 'tig' maal proberen.
De opdrachtregel is:
Van toepassing op: Bestanden en mappen
\B_Norton Backups\*.*
niets meer en minder
submappen worden dan ook weggelaten
Beetje vreemd allemaal, als het maar werkt.
 
Idd en dat is exact wat er op jouw plaatje de bedoeling was.
daarom herhaalde ik nog, dat je het pad, d:/ er niet bij mocht zetten...

Soms is lezen best lastig. Had vanmorgen een VBAtje in Excel waarbij je eerst alle punten van de dataset in de grafiek moest aanklikken, blijkbaar had ik dat toch niet goed gedaan en de macro liep telkens vast... Bleek dat ik toch niet goed alle punten geselecteerd... Op een bepaald moment kijk je er overheen, en dat was gister avond. Vanmorgen lukt het wel....

Hoe dan ook.. het is je gelukt...:thumb:
 
Laatst bewerkt:
Dat die schijfletter/pad er niet bij mag is op de screenshot nog af te lezen maar dat hele gedoe met de aanhalingstekens klopt dus niet. Je zou verwachten dat deze nodig zijn als er een spatie in de foldernaam staat. Met *.* (vaak bestanden) verwacht je niet dat submappen worden uitgesloten, klopt dus ook niet.

Samengevat:
Lezen kan lastig zijn. Je kunt iets niet begrijpen. Het kan maandag zijn, waarbij je nog niet helemaal nuchter bent. Kan zijn dat Allway Sync de materie iets beter moet uitleggen en illustreren met simpele voorbeelden. Ik leg wat ik wil toch ook niet zo moeilijk uit!

Bedankt voor de hulp.
 
Het verdient idd geen schoonheidsprijs.... ;)
 
Status
Niet open voor verdere reacties.
Steun Ons

Nieuwste berichten

Terug
Bovenaan Onderaan