From 7e8f9a9221e8277b9ed1f4f123bc0127827c4adb Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sun, 10 May 2026 21:15:36 +0200 Subject: [PATCH] document excludes for explicit backup sources --- doc/040_backup.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/040_backup.rst b/doc/040_backup.rst index c34670d19..8b4f2011e 100644 --- a/doc/040_backup.rst +++ b/doc/040_backup.rst @@ -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: ::