From 624a2d830589c058d32e9a3df22ef4d08e87b699 Mon Sep 17 00:00:00 2001 From: Oliver Gerlich Date: Sun, 18 Mar 2018 17:05:53 +0100 Subject: [PATCH 1/3] 040_backup.rst: quote wildcard characters This doesn't really matter for --exclude in most cases, but it avoids spreading bad ideas. --- doc/040_backup.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/040_backup.rst b/doc/040_backup.rst index 00b1b11d2..44cc9be96 100644 --- a/doc/040_backup.rst +++ b/doc/040_backup.rst @@ -93,7 +93,7 @@ Basic example: *.go # exclude foo/x/y/z/bar foo/x/bar foo/bar foo/**/bar - $ restic -r /tmp/backup backup ~/work --exclude=*.c --exclude-file=exclude + $ restic -r /tmp/backup backup ~/work --exclude="*.c" --exclude-file=exclude Please see ``restic help backup`` for more specific information about each exclude option. From 1bee3e01fab3e10c08e3ebccd21175714e9f158f Mon Sep 17 00:00:00 2001 From: Oliver Gerlich Date: Sun, 18 Mar 2018 17:06:21 +0100 Subject: [PATCH 2/3] 040_backup.rst: fix typo --- doc/040_backup.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/040_backup.rst b/doc/040_backup.rst index 44cc9be96..bd3f1c631 100644 --- a/doc/040_backup.rst +++ b/doc/040_backup.rst @@ -126,7 +126,7 @@ backup from a file. This is especially useful if a lot of files have to be backed up that are not in the same folder or are maybe pre-filtered by other software. -or example maybe you want to backup files that have a certain filename +For example maybe you want to backup files that have a certain filename in them: .. code-block:: console From e361cc380702613fea16ee318e0c2d7c012f1e49 Mon Sep 17 00:00:00 2001 From: Oliver Gerlich Date: Sun, 18 Mar 2018 20:51:04 +0100 Subject: [PATCH 3/3] 040_backup.rst: add note regarding paths in --files-from argument --- doc/040_backup.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/040_backup.rst b/doc/040_backup.rst index bd3f1c631..3b50b1683 100644 --- a/doc/040_backup.rst +++ b/doc/040_backup.rst @@ -146,6 +146,8 @@ args: $ restic -r /tmp/backup backup --files-from /tmp/files_to_backup /tmp/some_additional_file +Paths in the listing file can be absolute or relative. + Comparing Snapshots *******************