Re: pg_dumpall between Linux and FreeBSD.
От | frbn |
---|---|
Тема | Re: pg_dumpall between Linux and FreeBSD. |
Дата | |
Msg-id | 3D821ECE.5000305@efbs-seafrigo.fr обсуждение исходный текст |
Ответ на | pg_dumpall between Linux and FreeBSD. (Francisco J Reyes <francisco@natserv.net>) |
Список | pgsql-general |
Francisco J Reyes a écrit: > I have 1 FreeBSD machine and 1 Linux, Red Hat, machine. > I will need to periodically do a pg_dumpall from the Linux machine to the > FreeBSD machine. > > This has been a problem because on Linux the superuser ID is postgres and > on FreeBSD it is pgsl. > > When I try to restore to the FreeBSD machine it crashes because it can not > connect to the postgres user ID. I replaced all occurrences of postgres > with pgsql to get the load to work, but it was very time consuming (2.9 GB > file). > > Any suggestions on how to easily move data between these two systems? > I have only a handfull databases so doing individual pg_dumps may work, > but my fear is that if someone in my team makes a new DB (ie for new > development) that they may not tell me and I may not find out about it > until the machine has crashed and they come asking for a restore. :-) vipw change the username *ONLY* (don't touch the IDs) vi /etc/group change its groupname, if your user has its own group that should be ok. keep in mind that scripts doing such as 'su - pgsql' need an update too. (sed is your friend)
В списке pgsql-general по дате отправления: