summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authormarkalston <markalston@users.noreply.github.com>2017-09-26 08:03:48 -0600
committerGitHub <noreply@github.com>2017-09-26 08:03:48 -0600
commit732ad83ed80b9c9b7cd0eebcb1695132673eda81 (patch)
treeff259d39130da1c5109945c647e19f3eaf6154fa /README.md
parent5a8ed7b008ef95c4cae031892e31c0d252a2a31a (diff)
Update Readme.md to reflect remote pull method
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 8 insertions, 1 deletions
diff --git a/README.md b/README.md
index 99cc635..54091d0 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,7 @@ On macOS, it has a few disadvantages compared to Time Machine - in particular it
## Usage
- Usage: rsync_tmbackup.sh [OPTION]... <SOURCE> <[USER@HOST:]DESTINATION> [exclude-pattern-file]
+ Usage: rsync_tmbackup.sh [OPTION]... <[USER@HOST:]SOURCE> <[USER@HOST:]DESTINATION> [exclude-pattern-file]
Options
-p, --port SSH port.
@@ -37,6 +37,11 @@ On macOS, it has a few disadvantages compared to Time Machine - in particular it
rsync_tmbackup.sh -p 2222 /home user@example.com:/mnt/backup_drive
+
+* Backup from remote drive over SSH:
+
+ rsync_tmbackup.shuser@example.com:/home /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
@@ -70,6 +75,8 @@ To display the rsync options that are used for backup, run `./rsync_tmbackup.sh
* Backup to remote destinations over SSH.
+* Backup from remote destinations over SSH.
+
* Files that haven't changed from one backup to the next are hard-linked to the previous backup so take very little extra space.
* Safety check - the backup will only happen if the destination has explicitly been marked as a backup destination.