summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormackdata <michaelfresco@gmail.com>2017-04-06 13:33:34 +0200
committerGitHub <noreply@github.com>2017-04-06 13:33:34 +0200
commit103f85cd65fd1727d319d501bc529c7b3fb3dd92 (patch)
tree37f3412257bb000d302f31cd5c4a53fc3fc4d349
parent756b03bc32476e3ef4cc01ec52639383a51cb8fe (diff)
Update README.md
Added section ## Lockfile
-rw-r--r--README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index 886724e..f699019 100644
--- a/README.md
+++ b/README.md
@@ -42,6 +42,12 @@ To display the rsync options that are used for backup, run `./rsync_tmbackup.sh
rsync_tmbackup --rsync-set-flags "--numeric-ids --links --hard-links --one-file-system --archive --no-perms --no-groups --itemize-changes" /src /dest
+## Lock file
+
+The use of a lock-file is recommended for larger backups. Flock(1) is an easy way to get lock files and can be installed with Homebrew. Please refer to its [GitHub page](https://github.com/discoteq/flock) for more details. To use flock with the script, see this example:
+
+ flock -n /tmp/rsync.lock sh -c 'sh rsync_tmbackup.sh /home /mnt/backup_drive'
+
# Features
* Each backup is on its own folder named after the current timestamp. Files can be copied and restored directly, without any intermediate tool.