summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorLaurent Cozic <laurent22@users.noreply.github.com>2017-04-25 16:10:48 +0100
committerGitHub <noreply@github.com>2017-04-25 16:10:48 +0100
commitb2e5582adebf9444802f6aa11c71f679f31e31ce (patch)
tree26d6d9050f4957bf4816e8102e58a3e5c1fafabc /README.md
parent1d8592c39ad15e63d84434a4ed46d8b4cfd5e2c2 (diff)
Update README.md
Fixed tabs
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 7 insertions, 6 deletions
diff --git a/README.md b/README.md
index 5467db9..34f838d 100644
--- a/README.md
+++ b/README.md
@@ -18,23 +18,23 @@ On OS X, it has a few disadvantages compared to Time Machine - in particular it
* Backup the home folder to backup_drive
- rsync_tmbackup.sh /home /mnt/backup_drive
+ rsync_tmbackup.sh /home /mnt/backup_drive
* Backup with exclusion list:
- rsync_tmbackup.sh /home /mnt/backup_drive excluded_patterns.txt
+ rsync_tmbackup.sh /home /mnt/backup_drive excluded_patterns.txt
* Backup to remote drive over SSH, on port 2222:
- rsync_tmbackup.sh -p 2222 /home user@example.com:/mnt/backup_drive
+ rsync_tmbackup.sh -p 2222 /home user@example.com:/mnt/backup_drive
* To mimic Time Machine's behaviour, a cron script can be setup to backup at regular interval. For example, the following cron job checks if the drive "/mnt/backup" is currently connected and, if it is, starts the backup. It does this check every 1 hour.
- 0 */1 * * * if [[ -d /mnt/backup ]]; then rsync_tmbackup.sh /home /mnt/backup; fi
+ 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
+ flock -n /tmp/rsync_tmbackup.lock rsync_tmbackup.sh /home /mnt/backup
## Exclude file
@@ -44,7 +44,8 @@ An optional exclude file can be provided as a third parameter. It should be comp
To display the rsync options that are used for backup, run `./rsync_tmbackup.sh --rsync-get-flags`. It is also possible to add or remove options using the `--rsync-set-flags` option. For example, to exclude backing up permissions and groups:
- rsync_tmbackup --rsync-set-flags "--numeric-ids --links --hard-links --one-file-system --archive --no-perms --no-groups --itemize-changes" /src /dest
+ rsync_tmbackup --rsync-set-flags "--numeric-ids --links --hard-links \
+ --one-file-system --archive --no-perms --no-groups --itemize-changes" /src /dest
# Features