summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorLaurent Cozic <laurent@cozic.net>2016-09-10 11:30:17 +0100
committerGitHub <noreply@github.com>2016-09-10 11:30:17 +0100
commitd680039e5fd9a12e9fbf98bc1e020f3005c9f5d6 (patch)
treef3b3f7ea6701b49a835df2c2eafd18e3162ffe06 /README.md
parent5a0fd5f3b107ab9a01e6ab9c57a8ae2167a2492c (diff)
Update README.md
Documented `--rsync-set-flags` option.
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index 8713425..867e4c4 100644
--- a/README.md
+++ b/README.md
@@ -36,6 +36,12 @@ On OS X, it has a few disadvantages compared to Time Machine - in particular it
An optional exclude file can be provided as a third parameter. It should be compatible with the `--exclude-from` parameter of rsync. See [this tutorial] (https://sites.google.com/site/rsync2u/home/rsync-tutorial/the-exclude-from-option) for more information.
+## Rsync options
+
+To display the rsync options that are used for backup, run `./rsync_tmbackup.sh --rsync-get-flags`. It is also possible to add or remove options using the `--rsync-set-flags` option. For example, to exclude backing up permissions and groups:
+
+ rsync_tmbackup --rsync-set-flags "--numeric-ids --links --hard-links --one-file-system --archive --no-perms --no-groups --itemize-changes" /src /dest
+
# Features
* Each backup is on its own folder named after the current timestamp. Files can be copied and restored directly, without any intermediate tool.