From 103f85cd65fd1727d319d501bc529c7b3fb3dd92 Mon Sep 17 00:00:00 2001 From: mackdata Date: Thu, 6 Apr 2017 13:33:34 +0200 Subject: Update README.md Added section ## Lockfile --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) 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. -- cgit v1.2.3 From c44911155ec2644c571c182d3a2acdd725dc2efc Mon Sep 17 00:00:00 2001 From: mackdata Date: Thu, 6 Apr 2017 15:23:28 +0200 Subject: Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f699019..81f409f 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 @@ -44,7 +44,7 @@ To display the rsync options that are used for backup, run `./rsync_tmbackup.sh ## 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: +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' -- cgit v1.2.3 From 1964baa4a23dcfd1eb5b0dc938f1a3ac4e320679 Mon Sep 17 00:00:00 2001 From: mackdata Date: Thu, 6 Apr 2017 15:28:45 +0200 Subject: Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 81f409f..895ce1f 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ To display the rsync options that are used for backup, run `./rsync_tmbackup.sh ## 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: +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' -- cgit v1.2.3