9 lines
427 B
Django/Jinja
9 lines
427 B
Django/Jinja
#!/bin/bash
|
|
|
|
# Backup script that uses rsync, taken from https://wiki.archlinux.org/index.php/Rsync#As_a_backup_utility
|
|
# This script should be run daily with cron or a systemd timer.
|
|
|
|
RSYNC_BACKUP_SRC={{ rsync_backup_src }}
|
|
RSYNC_BACKUP_DEST={{ rsync_backup_dest }}
|
|
|
|
rsync -a --delete --quiet --exclude-from={{ ansible_facts.user_dir }}/src/secrets/setup-cockpit/rsync_backup_excludes "$RSYNC_BACKUP_SRC" "$RSYNC_BACKUP_DEST"
|