server-scripts/rsync-backup
2020-04-05 15:50:41 +02:00
..
README Added short README about rsync-backup.sh 2020-04-05 15:50:41 +02:00
rsync-backup.conf.example Added rsync-backup.sh script and example config 2020-04-05 15:43:32 +02:00
rsync-backup.sh Added rsync-backup.sh script and example config 2020-04-05 15:43:32 +02:00

This script is intended to be used in a cronjob and will make regular `rsync`-backups of certain directories and files that can be defined in `rsync-backup.conf`. Once executed, the script will send out an email with the `rsync` log.

The script makes use of the `rsync` `--delete`-flag. To prevent dataloss, backups can be interleave d to different target-directories. To do so, the script should be called with different configuration-files.

## Usage
```
./rsync-backup.sh -c <CONFIG_FILE>
```