server-scripts/rsync-backup
2023-05-16 23:11:50 -07:00
..
.gitignore Add rsync-backup.conf to .gitignore 2023-05-16 23:09:08 -07:00
README.md Added Markdown-extension to README filte 2020-04-05 15:51:43 +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 Enable compression, set TS window to 1, remove dirs from log 2023-05-16 23:11:50 -07: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>