2025-09-15 15:49:25 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
2026-07-10 17:06:01 -07:00
|
|
|
# Copyright 2025-2026 Thomas Hintz
|
|
|
|
|
|
|
|
|
|
# This file is part of Nassella.
|
|
|
|
|
|
|
|
|
|
# Nassella is free software: you can redistribute it and/or modify it under the
|
|
|
|
|
# terms of the GNU Affero General Public License as published by the Free
|
|
|
|
|
# Software Foundation, either version 3 of the License, or (at your option) any
|
|
|
|
|
# later version.
|
|
|
|
|
|
|
|
|
|
# Nassella is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
|
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
|
|
|
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
|
|
|
# along with Nassella. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
|
2025-09-15 15:49:25 -07:00
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
. $1 # source the apps.config file with then env vars
|
|
|
|
|
|
|
|
|
|
echo "AWS_ACCESS_KEY_ID=\"$BACKBLAZE_KEY_ID\""
|
|
|
|
|
echo "AWS_SECRET_ACCESS_KEY=\"$BACKBLAZE_APPLICATION_KEY\""
|
2026-01-18 07:50:31 -08:00
|
|
|
echo "BACKBLAZE_BUCKET_URL=\"$BACKBLAZE_BUCKET_URL\""
|
2026-04-23 19:01:12 -07:00
|
|
|
|
|
|
|
|
if [ -n "$RESTIC_SNAPSHOT_ID" ]; then
|
|
|
|
|
echo "RESTIC_SNAPSHOT_ID=\"$RESTIC_SNAPSHOT_ID\""
|
|
|
|
|
fi
|