docs: update README with setup instructions

This commit is contained in:
2026-01-31 15:42:00 +00:00
parent 19af2b1f31
commit 621b4da85a

View File

@@ -1,3 +1,43 @@
# prefect-flows-pg-backup # Prefect Flows - PostgreSQL Backup
Prefect flows for PostgreSQL backup to S3 (Garage) Flows Prefect pour la sauvegarde automatisée de bases PostgreSQL vers S3 (Garage).
## Prérequis
### Prefect Blocks
Configurer les blocks suivants dans Prefect UI ou via code :
```python
from prefect_aws import AwsCredentials
# Credentials S3 pour Garage
creds = AwsCredentials(
aws_access_key_id="xxx",
aws_secret_access_key="xxx",
aws_endpoint_url="https://s3.taila5ad8.ts.net"
)
creds.save("garage-credentials")
```
## Structure
```
prefect-flows-pg-backup/
├── flows/
│ └── backup.py # Flow principal de backup
├── deploy.py # Script de déploiement
├── requirements.txt
└── README.md
```
## Déploiement manuel
```bash
export PREFECT_API_URL=https://prefect.taila5ad8.ts.net/api
python deploy.py
```
## Déploiement automatique
Le workflow Gitea Actions déploie automatiquement les flows sur push vers `main`.