From da21c1235c8d7c8f40330a6fe02f3d326b941204 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Camilo=20Gonz=C3=A1lez?= Date: Fri, 8 Nov 2024 10:57:35 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=90=20Crear=20archivo=20para=20hacer?= =?UTF-8?q?=20respaldos=20de=20BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crearRespaldo.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 crearRespaldo.sh diff --git a/crearRespaldo.sh b/crearRespaldo.sh new file mode 100644 index 0000000..3aef5dc --- /dev/null +++ b/crearRespaldo.sh @@ -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