From 1e31f5202f5905355b844b8363fc0a5d46510815 Mon Sep 17 00:00:00 2001 From: Jan Niggemann Date: Thu, 21 Sep 2017 22:36:33 +0200 Subject: [PATCH 1/2] manual: Add info on special items Add info about handling of symlinks and bind-mounts. Closes: #1014 --- doc/manual.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/manual.rst b/doc/manual.rst index cfbdf3a66..d4877514a 100644 --- a/doc/manual.rst +++ b/doc/manual.rst @@ -564,6 +564,16 @@ args: $ restic -r /tmp/backup backup --files-from /tmp/files_to_backup /tmp/some_additional_file + +Backing up special items +~~~~~~~~~~~~~~~~~~~~~~~~ + +**Symlinks** are archieved as symlinks, ``restic``does not follow them. +When you restore, you get the same symlink again, with the same link target +and the same timestamps. + +If there is a **bind-mount** below a directory that is to be saved, restic descends into it. + Reading data from stdin ~~~~~~~~~~~~~~~~~~~~~~~ From 3b904525d9f431ea9c4b200ac37acd180308742a Mon Sep 17 00:00:00 2001 From: Jan Niggemann Date: Fri, 22 Sep 2017 22:58:26 +0200 Subject: [PATCH 2/2] manual: Add info on special items (device files) --- doc/manual.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/manual.rst b/doc/manual.rst index d4877514a..8ed98ce13 100644 --- a/doc/manual.rst +++ b/doc/manual.rst @@ -574,6 +574,11 @@ and the same timestamps. If there is a **bind-mount** below a directory that is to be saved, restic descends into it. +**Device files** are saved and restored as device files. This means that e.g. ``/dev/sda`` is +archived as a block device file and restored as such. This also means that the content of the +corresponding disk is not read, at least not from the device file. + + Reading data from stdin ~~~~~~~~~~~~~~~~~~~~~~~