2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-26 06:46:34 +00:00

Clarify documentation on --exclude-if-present

This commit is contained in:
Alexander Neumann 2019-02-22 15:22:29 +01:00
parent 45a48eb4a8
commit 7519c73987

View File

@ -142,8 +142,7 @@ the exclude options are:
- ``--iexclude`` Same as ``--exclude`` but ignores the case of paths - ``--iexclude`` Same as ``--exclude`` but ignores the case of paths
- ``--exclude-caches`` Specified once to exclude folders containing a special file - ``--exclude-caches`` Specified once to exclude folders containing a special file
- ``--exclude-file`` Specified one or more times to exclude items listed in a given file - ``--exclude-file`` Specified one or more times to exclude items listed in a given file
- ``--exclude-if-present`` Specified one or more times to exclude a folders content - ``--exclude-if-present foo`` Specified one or more times to exclude a folder's content if it contains a file called ``foo``` (optionally having a given header, no wildcards for the file name supported)
if it contains a given file (optionally having a given header)
Let's say we have a file called ``excludes.txt`` with the following content: Let's say we have a file called ``excludes.txt`` with the following content: