We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 912f4a2 commit e8372f4Copy full SHA for e8372f4
scripts/infrastructure/backup-db.sh
@@ -1,12 +1,12 @@
1
#!/bin/bash
2
3
# Récupérer l'ID de l'instance
4
-INSTANCE_ID=$(scw rdb instance list | grep "lvao-preprod-db" | awk '{print $1}')
+INSTANCE_ID=$(scw rdb instance list | grep "lvao-prod-db" | awk '{print $1}')
5
TODAY=$(date +%Y%m%d)
6
EXISTING_BACKUPS=$(scw rdb backup list instance-id=$INSTANCE_ID | grep "$TODAY")
7
8
if [ -z "$INSTANCE_ID" ]; then
9
- echo "Instance lvao-preprod-db non trouvée"
+ echo "Instance lvao-prod-db non trouvée"
10
exit 1
11
fi
12
0 commit comments