Update 'README.md'

This commit is contained in:
Shannon Sterz 2017-08-06 11:36:19 +02:00
parent b94d4e72e4
commit 1e223b1a6c

View file

@ -55,10 +55,24 @@ FROMSSHPORT=22 # The ssh port of the system from which the
``` ```
### Crontab example ### Crontab example
Create a backup every two hours: Create a backup every two hours (use flock to prevent duplicate scripts from running):
```bash ```bash
0 */2 * * * ~/backup.sh 0 */2 * * * flock -n ~/backup.lock ~/backup.sh
```
### Exclude file example
This example can be used for a full system backup (use only "/" as source for a full system backup). Copied from the [Arch Wiki](https://wiki.archlinux.org/index.php/rsync#Full_system_backup).
```
/dev/*
/proc/*
/sys/*
/tmp/*
/run/*
/mnt/*
/media/*
/lost+found
``` ```
## Inspiration ## Inspiration