Actualizar .gitea/workflows/backup.yaml
This commit is contained in:
@@ -46,12 +46,14 @@ jobs:
|
|||||||
- name: Backup data
|
- name: Backup data
|
||||||
run: supabase db dump -f backup/data.sql --data-only --use-copy
|
run: supabase db dump -f backup/data.sql --data-only --use-copy
|
||||||
|
|
||||||
- name: Configure AWS CLI
|
- name: Install AWS CLI
|
||||||
uses: aws-actions/configure-aws-credentials@v4
|
run: |
|
||||||
with:
|
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
|
||||||
aws-access-key-id: ${{ secrets.MINIO_ACCESS_KEY }}
|
unzip awscliv2.zip
|
||||||
aws-secret-access-key: ${{ secrets.MINIO_SECRET_KEY }}
|
sudo ./aws/install
|
||||||
aws-region: us-east-1
|
|
||||||
- name: Upload to MinIO (S3)
|
- name: Upload to MinIO (S3)
|
||||||
run: |
|
run: |
|
||||||
aws --endpoint-url $S3_ENDPOINT s3 cp backup/ s3://$S3_BUCKET/SUPABASE/ --recursive
|
TIMESTAMP=$(date +'%Y-%m-%d_%H-%M-%S')
|
||||||
|
|
||||||
|
aws --endpoint-url $S3_ENDPOINT s3 cp backup/ s3://$S3_BUCKET/$TIMESTAMP/ --recursive
|
||||||
Reference in New Issue
Block a user