From 9367b9b80bef4d8fc9c80984c8739eaa38812e59 Mon Sep 17 00:00:00 2001 From: jpartain89 Date: Tue, 25 Apr 2017 09:24:49 -0500 Subject: Changed `flock` line Changed `sh` to `bash` when calling `rsync_tmbackup.sh`. A bunch of errors pop up when using `sh`. trap: SIGINT: bad trap rsync_tmbackup.sh: 173: rsync_tmbackup.sh: [[: not found rsync_tmbackup.sh: 173: rsync_tmbackup.sh: -z: not found rsync_tmbackup.sh: 71: rsync_tmbackup.sh: [[: not found rsync_tmbackup.sh: 194: rsync_tmbackup.sh: [[: not found rsync_tmbackup.sh: 194: rsync_tmbackup.sh: [[: not found rsync_tmbackup.sh: 194: rsync_tmbackup.sh: [[: not found --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 895ce1f..f56ebe6 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ To display the rsync options that are used for backup, run `./rsync_tmbackup.sh 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' + flock -n /tmp/rsync.lock sh -c 'bash rsync_tmbackup.sh /home /mnt/backup_drive' # Features -- cgit v1.2.3