feature/multi-cloud #14
10
scripts/gitea-backup-azure.sh → scripts/gitea-backup-aks.sh
Executable file → Normal file
10
scripts/gitea-backup-azure.sh → scripts/gitea-backup-aks.sh
Executable file → Normal file
@@ -2,19 +2,19 @@
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
# Gitea backup helper for Azure Blob Storage
|
# Gitea backup helper for Azure Blob Storage
|
||||||
# Uses the gitea-backup-azure secret in the gitea namespace
|
# Uses the gitea-backup-aks secret in the gitea namespace
|
||||||
# Required secret keys:
|
# Required secret keys:
|
||||||
# AZURE_STORAGE_ACCOUNT — storage account name
|
# AZURE_STORAGE_ACCOUNT — storage account name
|
||||||
# AZURE_STORAGE_KEY — storage account key
|
# AZURE_STORAGE_KEY — storage account key
|
||||||
# AZURE_CONTAINER — blob container name
|
# AZURE_CONTAINER — blob container name
|
||||||
#
|
#
|
||||||
# Usage:
|
# Usage:
|
||||||
# ./scripts/gitea-backup-azure.sh list # list all backups
|
# ./scripts/gitea-backup-aks.sh list # list all backups
|
||||||
# ./scripts/gitea-backup-azure.sh download <filename> # download a backup
|
# ./scripts/gitea-backup-aks.sh download <filename> # download a backup
|
||||||
# ./scripts/gitea-backup-azure.sh download latest # download the most recent backup
|
# ./scripts/gitea-backup-aks.sh download latest # download the most recent backup
|
||||||
|
|
||||||
NAMESPACE="gitea"
|
NAMESPACE="gitea"
|
||||||
SECRET="gitea-backup-azure"
|
SECRET="gitea-backup-aks"
|
||||||
IMAGE="mcr.microsoft.com/azure-cli:latest"
|
IMAGE="mcr.microsoft.com/azure-cli:latest"
|
||||||
POD_NAME="gitea-backup-helper"
|
POD_NAME="gitea-backup-helper"
|
||||||
|
|
||||||
Reference in New Issue
Block a user