|
|
@ -1,5 +1,6 @@
|
|
|
|
#!/bin/bash
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ AWS_RESTIC_BACKUP = 'no' ]; then
|
|
|
|
restic backup --verbose \
|
|
|
|
restic backup --verbose \
|
|
|
|
--tag "${RESTIC_TAG_01}" --tag "${RESTIC_TAG_02}" \
|
|
|
|
--tag "${RESTIC_TAG_01}" --tag "${RESTIC_TAG_02}" \
|
|
|
|
--exclude-caches \
|
|
|
|
--exclude-caches \
|
|
|
@ -7,3 +8,16 @@ restic backup --verbose \
|
|
|
|
--exclude "${SCRIPT_DIR}"/variables.sh \
|
|
|
|
--exclude "${SCRIPT_DIR}"/variables.sh \
|
|
|
|
--exclude "${SCRIPT_DIR}"/variablesAWS.sh \
|
|
|
|
--exclude "${SCRIPT_DIR}"/variablesAWS.sh \
|
|
|
|
"${RESTIC_SOURCE}"
|
|
|
|
"${RESTIC_SOURCE}"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ AWS_RESTIC_BACKUP = 'yes' ]; then
|
|
|
|
|
|
|
|
restic backup --verbose \
|
|
|
|
|
|
|
|
--tag "${RESTIC_TAG_01}" --tag "${RESTIC_TAG_02}" \
|
|
|
|
|
|
|
|
--exclude-caches \
|
|
|
|
|
|
|
|
--exclude-file="${RESTIC_EXCLUDES}" \
|
|
|
|
|
|
|
|
--exclude "${SCRIPT_DIR}"/variables.sh \
|
|
|
|
|
|
|
|
--exclude "${SCRIPT_DIR}"/variablesAWS.sh \
|
|
|
|
|
|
|
|
-o s3.connections="${AWS_CONNECTIONS}" \
|
|
|
|
|
|
|
|
--limit-upload "${AWS_UPLOAD}" \
|
|
|
|
|
|
|
|
"${RESTIC_SOURCE}"
|
|
|
|
|
|
|
|
fi
|