edincludesexcludes - Using regular expressions to include and exclude files from replication.
EDpCloud uses regular expressions to filter files and directories that need to be included in or excluded from replication. By default all files are included in the replication unless they are in the exclude list.
We refer to file inclusions as includes. We also refer to file exclusion as excludes. Includes and excludes are controlled for all links or or for individual links.
The includes are controlled using the default file under EDpCloudbasedir/etc/includes (by default if this file does not exist, we will use the regular expression .* which means include all patterns.
You can override the content of this file by providing a file name directly in eddist.cfg using incfile="absolutepathfilename". You can also specify additional patterns using the keyword include="List of expressions" in eddis.cfg.
Make sure you escape special characters such as '\' and '$'.
Correct: .*:\\data\\.*
Incorrect: .*:\Windows\\.* [ because we forgot to escape the first backward slash ]
Excludes are controlled using EDpCloudbasedir/etc/excludes or by setting exfile="path_to_custom_exlude_file" for a given link in eddist.cfg. You can also enter the expressions directly in eddist.cfg using excludes="Expressions".
By default, EDpCloud ships with an exclude file for your platform and you must edit it to suit your needs.
$ED_BASE_DIR/etc/eddist.cfg $ED_BASE_DIR/etc/includes $ED_BASE_DIR/etc/excludes
eddist.cfg(5)
The status is 0 on success.
ED_BASE_DIR: Top install directory.
For more information contact <support@enduradata.com>
A. A. El Haddi, elhaddi@ieee.org