Re: Emergency backup question.
От | Brian |
---|---|
Тема | Re: Emergency backup question. |
Дата | |
Msg-id | 3.0.5.32.20011120094245.00c2d3d0@pop.we.mediaone.net обсуждение исходный текст |
Ответ на | Emergency backup question. (Danni Coy <rgcoy@midcoast.com.au>) |
Список | pgsql-novice |
My take on the documentation that I just read is that you have a filesystem backup of the data if you have everything atand below the pgsql/data directory... ---- to quote the docs -------- An alternative backup strategy is to directly copy the files that Postgres uses to store the data in the database. In Section3.2 it is explained where these files are located, but you have probably found them already if you are interestedin this method. You can use whatever method you prefer for doing usual file system backups, for example tar -cf backup.tar /usr/local/pgsql/data There are two restrictions, however, which make this method impractical, or at least inferior to the pg_dump method: The database server must be shut down in order to get a usable backup. Half-way measures such as disallowing all connectionswill not work as there is always some buffering going on. For this reason it is also not advisable to trust filesystems that claim to support "consistent snapshots". Information about stopping the server can be found in Section 3.6. Needless to say that you also need to shut down the server before restoring the data. -- end quote -------- At 05:15 AM 11/23/01 +1100, Danni Coy wrote: >Greetings Basically I have a problem here. I lost my linux system due to >hard drive corruption I managed to back up my /var/lib/pgsql/data/base >directory to an ordinary tarball before I redid the system. Is there any >way to use this data as a backup? >and what is the proceedure for a proper backup? > > >---------------------------(end of broadcast)--------------------------- >TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org >
В списке pgsql-novice по дате отправления: