Received: from news.tht.net (news.hub.org [216.126.91.242]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f12H05q93539 for ; Fri, 2 Feb 2001 12:00:05 -0500 (EST) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.1/8.11.1) id f12Gouw48257 for pgsql-admin@postgresql.org; Fri, 2 Feb 2001 11:50:56 -0500 (EST) (envelope-from news) From: robert.gravsjo@nsgroup.net () X-Newsgroups: comp.databases.postgresql.admin Subject: Re: Consulta about BACKUP DB Date: Fri, 2 Feb 2001 16:50:55 +0000 (UTC) Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 29 Message-ID: <95eohe$1f14$1@news.tht.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: scrappy@hub.org X-Newsreader: knews 1.0b.1 To: pgsql-admin@postgresql.org X-Archive-Number: 200102/9 X-Sequence-Number: 609 In article , writes: > Hi all, > > I going to cahge machine, but I need to make backup of my database, my > version of postgresql is: 6.5.3 now my version will be 7.0. > > How can I to make the backup of tables, index and data? > > Thanks in advanced. > > Try pg_dump databasename > datbase_dumpfile to dump the database. Then create an empty database on the new server and run cat database_dumpfile | psql -d newdatabasename I don't know what os your on, but this works for me on linux (SuSE 7.0). regards robert gravsjo -- Robert Gravsjö robert.gravsjo@nsgroup.net System developer Cell: +46 (0)708 72 00 46 Work: +46 (0)480 42 46 16 NS Group www.nsgroup.net