summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorLaurent Cozic <laurent22@users.noreply.github.com>2017-04-25 16:07:47 +0100
committerGitHub <noreply@github.com>2017-04-25 16:07:47 +0100
commitcffc330ff502a3f9014b893685a6f16f51d11bd5 (patch)
tree927548f099ae28988c89e50ab5dc2f6b99e2a03f /README.md
parent4b15ea8f7547daeb34092351d6d5b2743e05fe05 (diff)
Update README.md
Moved `flock` information under Example and shortened it
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/README.md b/README.md
index f56ebe6..a3635a6 100644
--- a/README.md
+++ b/README.md
@@ -32,6 +32,10 @@ On OS X, it has a few disadvantages compared to Time Machine - in particular it
0 */1 * * * if [[ -d /mnt/backup ]]; then rsync_tmbackup.sh /home /mnt/backup; fi
+* The use `flock` is recommended so that only one instance of the script runs at a given time:
+
+ flock -n /tmp/rsync_tmbackup.lock rsync_tmbackup.sh /home /mnt/backup
+
## Exclude file
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.