From 0873821b98b595c6e46124cab6eb784c431452c6 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sun, 18 Sep 2016 20:18:52 +0200 Subject: [PATCH] Add section about `--one-file-system` to manual --- doc/Manual.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/Manual.md b/doc/Manual.md index b562ca5bb..547f635be 100644 --- a/doc/Manual.md +++ b/doc/Manual.md @@ -206,6 +206,13 @@ see [`filepath.Match`](https://golang.org/pkg/path/filepath/#Match) for syntax. Additionally `**` exludes arbitrary subdirectories. Environment-variables in exclude-files are expanded with [`os.ExpandEnv`](https://golang.org/pkg/os/#ExpandEnv). +By specifying the option `--one-file-system` you can instruct restic to only +backup files from the file systems the initially specified files or directories +reside on. For example, calling restic like this won't backup `/sys` or +`/dev` on a Linux system: + + $ restic -r /tmp/backup backup --one-file-system / + ## Reading data from stdin Sometimes it can be nice to directly save the output of a program, e.g.