[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: pasar postgesql de slink a potato



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

antonioangel.sanzarrospide@telefonica.es writes:

> Tengo una base en postgresql en slink. Ayer pasé este pc de slink a potato
> sin ningún problema, excepto la base de datos.
> 
> He leído la migración que indica Debian y dando los comandos que vienen no
> he sido capaz de actualizar la base de datos. Tengo guardado en backup la
> versión 6.3.
> Her usado los siguiente:
> 
>   # su - postgres
>    $ postgresql-dump -t db.out -cilfdp $PGDATA/../data.save    aunque he tenido que modificar el
> $PGDATA quitándolo
> 
> y he usado este comando:
> 
>   # su - postgres
>    $ postgresql-dump -t db.out -cilfdp ../data.save
> 
> También he usado el otro que recomiendan
> 
>        # su - postgres
>         $ postgresql-dump -t db.out -dcilp ../data.save
> 
> e incluso el volcado a fichero por partes:
>    postgresql-dump -t fichero               # dump to tape
>     postgresql-dump -c -t fichero            # check tape dump
>     postgresql-dump -d -t fichero -i -l      # destroy the old database
>                                               # create a new one and
>                                               # load the dump


Una vez que tienes el db.out (que estará por alguna parte, búscalo con
find), puedes probar el siguiente comando:

psql -e database <db.out

Yo hice la migración que cuentas, de slink a potato, y no recuerdo
como lo hice exactamente, pero no tengo el recuerdo de que fuera muy
complicado. Si no te funciona, mándame un mail y te lo miro con más calma.

Han Solo
The Rebel Alliance

Emacs is not on every system

So what? [...] Do you tell your administrative people to stick with
notepad.exe? Do you tell your fat kids they can only have the crummy
games that come with their video games or plain dress that comes with
Barbie?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.5 and Gnu Privacy Guard <http://www.gnupg.org/>

iEYEARECAAYFAjpKJGUACgkQ4FjpJaPEp231/ACfRoDhL9V77nSWP66+FFCZ0lYL
bKYAoPs+Lj3DDDWNHbqM9+xzAkZTAtNW
=Kp1L
-----END PGP SIGNATURE-----



Reply to: