diff --git a/doc/040_backup.rst b/doc/040_backup.rst index 00b1b11d2..3b50b1683 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. @@ -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 @@ -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 *******************