Updated
Apparently it should only be done
pg_dump -U <usuario> <nombre_bd>
I enter in 2 ways and I get the same error:
I go in
Inicio- Todos los programas - PostgreSQL 9.4 - SQL Shell
and place that instruction and nothing happens, if I put it at the end;
it tells me that there is a syntax error.I enter by
cmd - cd C:\Files Program\Postgresql\9.4\bin
and place the same instruction... without ; nothing happens and with ; get syntax error.
Can you help me? I don't know how to use windows for these things and some others I have already forgotten. If possible I would like the backup to stay on the desktop or in my Documents.
As @rnd says, these commands must be run in the Windows command console, precisely in the link you put, the person asks how to do it from the command console.
The command console in Windows is opened by simply pressing tecla windows+ R, typing
cmd
and then running from there. You can also open it from the start menu and search for cmd.To give you a better idea of the command, you can see this link .
To make a backup in vs 9.5 postgres on windows:
C:\Archivos de programas\postgresql\9.5\bin
Run the following line:
The path can be something like
C:\xampp\htdocs\carpeta_proyecto\pyFecha.backup
PS: remember to put the extension '. backup ' to your file
You enter from cmd to the path where you have the postgresql installation and execute the following command.
I leave you this link so you can see the process. https://www.youtube.com/watch?v=dQ4pRSRPfWk#action=share