diff options
Diffstat (limited to 'backups.d/userdata.sh')
-rwxr-xr-x | backups.d/userdata.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/backups.d/userdata.sh b/backups.d/userdata.sh new file mode 100755 index 0000000..2d7ba1d --- /dev/null +++ b/backups.d/userdata.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# This script is used by the CRON Daemon to launch automated backups via the Restic backup utility + + +# Load restic varibles +source /etc/restic.d/backblaze.conf + +# Perform userdata backup +restic backup \ + "$RESTIC_COMMON_OPTS" \ + --tag userdata \ + /var/www/vhosts /var/mail /var/qmail/mailnames /var/spool/cron \ + --exclude="/var/www/vhosts/*/httpdocs/components/com_virtuemart/shop_image/mfgs/cache/*" \ + --exclude="/var/www/vhosts/*/httpdocs/includes/STN/locks/*" \ + --exclude="/var/www/vhosts/*/logs/*" \ + --exclude="/var/www/vhosts/system/*/logs/*" |