diff options
author | Thomas Groman <tgroman@nuegia.net> | 2020-03-11 14:30:34 -0700 |
---|---|---|
committer | Thomas Groman <tgroman@nuegia.net> | 2020-03-11 14:30:34 -0700 |
commit | 753ad76f5f32ace36a7686936b76caf296c7ff65 (patch) | |
tree | dc1c94387e370e362117eeda5c634ed383e3020e /backups.d/userdata.sh | |
download | restic_bootsrap-753ad76f5f32ace36a7686936b76caf296c7ff65.tar restic_bootsrap-753ad76f5f32ace36a7686936b76caf296c7ff65.tar.gz restic_bootsrap-753ad76f5f32ace36a7686936b76caf296c7ff65.tar.lz restic_bootsrap-753ad76f5f32ace36a7686936b76caf296c7ff65.tar.xz restic_bootsrap-753ad76f5f32ace36a7686936b76caf296c7ff65.zip |
initial commit
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/*" |