Skip to content

Instantly share code, notes, and snippets.

@samuelloza
Last active February 8, 2018 14:55
Show Gist options
  • Select an option

  • Save samuelloza/65168021f1cbdc8de24c12626df8fa55 to your computer and use it in GitHub Desktop.

Select an option

Save samuelloza/65168021f1cbdc8de24c12626df8fa55 to your computer and use it in GitHub Desktop.
Postgres restaurar copia de seguridad remota
Restaurar copia de seguridad remotamente
ELiminamos la copia de seguridad
dropdb -h 192.168.188.4 -p 5432 -U postgres -W siipp
Creamos la bd
createdb -h 192.168.188.4 -p 5432 -U postgres -W siipp
Restauramos la copia de seguridad
psql -h 192.168.188.4 -p 5432 -U postgres -W siipp < archivo.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment