2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-01 16:40:50 +00:00

Add section about --one-file-system to manual

This commit is contained in:
Alexander Neumann 2016-09-18 20:18:52 +02:00
parent 0a9cbd47c7
commit 0873821b98

View File

@ -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.