document excludes for explicit backup sources

This commit is contained in:
Michael Eischer
2026-05-10 21:15:36 +02:00
parent 32bcd92f60
commit 7e8f9a9221
+9
View File
@@ -355,6 +355,15 @@ the exclude options are:
Please see ``restic help backup`` for more specific information about each exclude option.
.. note::
Excludes do not apply to backup sources that were explicitly passed to the `backup`
command. That is ``restic backup ~/work.txt`` will always backup the file ``~/work.txt``
independent of any excludes.
This only applies to the exact paths that were explicitly passed to the `backup` command.
Content inside a directory you back up is still filtered by the given excludes.
Suppose you have a file called ``excludes.txt`` with the following content:
::