summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Cozic <laurent22@users.noreply.github.com>2017-04-06 14:36:43 +0100
committerGitHub <noreply@github.com>2017-04-06 14:36:43 +0100
commit75ff2a6acadb5f739fd3075281333120c0992298 (patch)
treef7ef5af95cca18e0d0fe481fa8ea1df3b2dd1654
parent756b03bc32476e3ef4cc01ec52639383a51cb8fe (diff)
parent1964baa4a23dcfd1eb5b0dc938f1a3ac4e320679 (diff)
Merge pull request #69 from mackdata/master
Update README.md
-rw-r--r--README.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/README.md b/README.md
index 886724e..895ce1f 100644
--- a/README.md
+++ b/README.md
@@ -34,7 +34,7 @@ On OS X, it has a few disadvantages compared to Time Machine - in particular it
## 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.
+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
@@ -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)](https://github.com/discoteq/flock) is an easy way to get lock files and can be installed with Homebrew. Please refer to its GitHub page 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.