diff --git a/README.md b/README.md index 4ccc928..a73005a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,43 @@ -# prefect-flows-pg-backup +# Prefect Flows - PostgreSQL Backup -Prefect flows for PostgreSQL backup to S3 (Garage) \ No newline at end of file +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`.