Skip to content

Commit

Permalink
🔐 Crear archivo para hacer respaldos de BD
Browse files Browse the repository at this point in the history
  • Loading branch information
1cgonza committed Nov 8, 2024
1 parent c3d829b commit da21c12
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions crearRespaldo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
# crearRespaldo.sh

# Install Environment file
source .env

# Backup MongoDB
/usr/bin/docker exec -t enflujo-cms-bd pg_dump \
-U $BD_USUARIO $BD_NOMBRE_BD \
> ./dump/enflujobd.sql

0 comments on commit da21c12

Please sign in to comment.