Update README.md

This commit is contained in:
Mike Peralta 2018-09-01 05:23:05 -07:00 committed by GitHub
parent 054ca42974
commit a042de9aa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 1 deletions

View File

@ -28,7 +28,16 @@ Honestly this is more of a wrapper around rsync's beautiful functionality. It si
For daily use, you'll probably want to create a small bash script that calls this script with the parameters you want, and then call that with cron daily (or whatever your preference is)
```#!/bin/bash
/path/to/mikes-backup --log-dir "/my/log/dir" --source-dir "/home/or/whatever" --remote-host "my-awesome-host.home" --remote-user "me" --remote-dir "/path/to/backup/destination/on/remote/" --ssh-key "/home/me/.ssh/id_rsa" --exclude "/my/dumb/downloads"
/path/to/mikes-backup \
--log-dir "/my/log/dir" \
--source-dir "/home/or/whatever" \
--remote-host "my-awesome-host.home" \
--remote-user "me" \
--remote-dir "/path/to/backup/destination/on/remote/" \
--ssh-key "/home/me/.ssh/id_rsa" \
--exclude "/my/dumb/downloads" \
--exclude "/my/even/dumber/downloads"
```
## Questions