feat: add backup docker containers

This commit is contained in:
2025-08-03 08:38:03 +00:00
parent bf2365a96d
commit d286202cc5
3 changed files with 24 additions and 18 deletions

View File

@@ -22,6 +22,9 @@ if [[ "--install" == $INSTALLED ]]; then
info_print "AWS configuration."
aws configure
create_env_variable AWS_ACCESS_KEY_ID $(aws configure get aws_access_key_id)
create_env_variable AWS_SECRET_ACCESS_KEY $(aws configure get aws_secret_access_key)
touch "$BACKUP"
info_print "$BACKUP created."

View File

@@ -18,9 +18,6 @@ if [[ "--install" == $INSTALLED ]]; then
source /etc/serverconfig/.env
export AWS_ACCESS_KEY_ID=$(aws configure get aws_access_key_id)
export AWS_SECRET_ACCESS_KEY=$(aws configure get aws_secret_access_key)
if [[ -f "$ETC_DIR/docker-compose.yml" ]]; then
docker compose -f "$ETC_DIR/docker-compose.yml" up -d --force-recreate && \
info_print "$ETC_DIR/docker-compose.yml is running." 6;