From 31c0d40071ce40272beb6d2ff7408c707ce64847 Mon Sep 17 00:00:00 2001 From: Georg Date: Wed, 21 Jul 2021 13:47:29 +0200 Subject: Initial Scripts Run Signed-off-by: Georg --- scripts/bash/restic_run | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 scripts/bash/restic_run (limited to 'scripts/bash/restic_run') diff --git a/scripts/bash/restic_run b/scripts/bash/restic_run new file mode 100644 index 0000000..0b60c40 --- /dev/null +++ b/scripts/bash/restic_run @@ -0,0 +1,16 @@ +#!/bin/bash +#/usr/bin/echo Executing Restic S3 Backup for $(hostname -f) +export RESTIC_REPOSITORY="s3:https://$S3HOST/$S3BUCKET" +export RESTIC_PASSWORD_FILE="/etc/restic/.sec" +export AWS_ACCESS_KEY_ID="$S301" +export AWS_SECRET_ACCESS_KEY="$S302" +export RESTIC_CACHE_DIR="/opt/restic/cache" +EXCLUDE=".restic.excludes" +/usr/bin/restic --verbose backup --exclude-file="/etc/$EXCLUDE" /etc +echo "EXIT $?" +/usr/bin/restic --verbose backup --exclude-file="/home/$EXCLUDE" /home +echo "EXIT $?" +/usr/bin/restic --verbose backup --exclude-file="/opt/$EXCLUDE" /opt +echo "EXIT $?" +/usr/bin/restic --verbose backup --exclude-file="/srv/$EXCLUDE" /srv +echo "EXIT $?" -- cgit v1.2.3