SyncDiscs

The Zone file


The Zone file

It is possible to have a text file called

!SyncDiscs.Resources.Zone

in which one can specify files that SyncDiscs should ignore when carrying out a synchronisation. One can match the left hand part of a path that you want to be ignored by SyncDiscs by using a pattern such as the following:

ADFS::HardDisc4.$.xxx

It is also possible to match the right hand side of paths by putting three dots before the file name. So

...tempfile

will make any file called 'tempfile' be ignored.

The facility is made more powerful by the use of wildcards in the zone file. The character * will match any number of characters, while the character ? will match one.

Putting all this together, for example, one can ignore all compiler object files, which are normally in directories named o, with a zone file entry of

...o.*

This feature should be considered developmental, since it only works if the individual objects are actually seen by the program. If, in the above example, the secondary has no 'o' directory, and the setting 'Copy complete directories' is ticked, then the o directory will be copied whole.

Note 1: If a file to be ignored is found to exist in the secondary, then that file will be deleted from the secondary.
Note 2: The zone file is read during program initiation. Therefore if you create or modify the zone file, !SyncDiscs must be restarted before the change will be recognised.


  Multitasking and the progress window   |   Index   |   Command line  

SyncDiscs is © 2012, Chris Johnson and David Pilling
Email:chris@chris-johnson.org.uk

This document last modified on 18th December 2014

These pages are best viewed in a CSS compliant browser. For RISC OS, Netsurf would be the browser of choice.