File system level copy

From: "Wang, Hao" <Hao(dot)Wang(at)emc(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: File system level copy
Date: 2012-11-14 07:59:51
Message-ID: 5924071B5F390F46934DECF517DFA37102410E@MX101CL01.corp.emc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi
I installed PostgresSQL-8.3 on my linux machine.
The cluster directory is /usr/local/data and I created three databases named db1, db2, and db3. db1 is in the default tablespace 'pg_default'. db2 is in '/home/tablespace/space1/' and db3 is in '/home/tablespace/space2/'. I want to copy the cluster directory and the db3 tablespace folder('/home/tablespace/space2/') without stopping the database server. Then I want to use the cluster directory and db3's tablespace in another linux machine to recover 'db3' database. Does this way work? If not, why?

Regards,
Hao

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tianyin Xu 2012-11-14 08:12:42 How do query optimizers affect window functions
Previous Message Wang, Hao 2012-11-14 07:50:04 File system level copy