Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
#Exportamos la base de datos
pg_dump -h direccion_ip -U user -d your_sentry_db_name > dbbackup.sql
#compresion de base de datos
tar -cf $BACKUP_DIR/bd$(date +%d-%m-%y_%H:%M).tar dbbackup.sql
#borrado de base de datos despues de la compresion
rm -rf $BACKUP_DIR/dbbackup.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.