From f6b8187e1065245e3fb86c652e5aae0cb7880dde Mon Sep 17 00:00:00 2001 From: kalyan Date: Thu, 3 Dec 2026 03:01:55 +0530 Subject: [PATCH] doc: explain new/changed/unmodified in the backup summary (#22244) --- doc/040_backup.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/doc/040_backup.rst b/doc/040_backup.rst index e2c411616..b1a1ea8be 100644 --- a/doc/040_backup.rst +++ b/doc/040_backup.rst @@ -183,6 +183,21 @@ Now is a good time to run ``restic check`` to verify that all data is properly stored in the repository. You should run this command regularly to make sure the internal structure of the repository is free of errors. +Backup summary +************** + +The ``Files:`` and ``Dirs:`` lines at the end of a backup count each file and +directory in the new snapshot exactly once, compared to the parent snapshot +(see `File change detection`_ for how the parent is selected): + +* ``new``: the item did not exist in the parent snapshot. +* ``changed``: the item existed in the parent snapshot, but its content or + metadata differs. A directory counts as changed if anything inside it changed. +* ``unmodified``: the item is the same as in the parent snapshot. + +If there is no parent snapshot, for example on the first backup, every item is +``new``, and both other counts are zero. + File change detection *********************