|
1 | 1 | <!-- |
2 | | -$PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.66 2005/06/20 13:52:17 tgl Exp $ |
| 2 | +$PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.67 2005/06/21 04:02:29 tgl Exp $ |
3 | 3 | --> |
4 | 4 | <chapter id="backup"> |
5 | 5 | <title>Backup and Restore</title> |
@@ -177,11 +177,11 @@ pg_dumpall > <replaceable>outfile</> |
177 | 177 | </synopsis> |
178 | 178 | The resulting dump can be restored with <application>psql</>: |
179 | 179 | <synopsis> |
180 | | -psql -f <replaceable class="parameter">infile</replaceable>template1 |
| 180 | +psql -f <replaceable class="parameter">infile</replaceable>postgres |
181 | 181 | </synopsis> |
182 | 182 | (Actually, you can specify any existing database name to start from, |
183 | | - but if you are reloading in an empty cluster then <literal>template1</> |
184 | | -is the only available choice.) It is always necessary to have |
| 183 | + but if you are reloading in an empty cluster then <literal>postgres</> |
| 184 | +should generally be used.) It is always necessary to have |
185 | 185 | database superuser access when restoring a <application>pg_dumpall</> |
186 | 186 | dump, as that is required to restore the user and group information. |
187 | 187 | </para> |
@@ -1223,7 +1223,7 @@ restore_command = 'copy /mnt/server/archivedir/%f "%p"' # Windows |
1223 | 1223 | in parallel, on different ports. Then you can use something like |
1224 | 1224 |
|
1225 | 1225 | <programlisting> |
1226 | | -pg_dumpall -p 5432 | psql -dtemplate1 -p 6543 |
| 1226 | +pg_dumpall -p 5432 | psql -dpostgres -p 6543 |
1227 | 1227 | </programlisting> |
1228 | 1228 |
|
1229 | 1229 | to transfer your data. Or use an intermediate file if you want. |
@@ -1256,7 +1256,7 @@ cd ~/postgresql-&version; |
1256 | 1256 | gmake install |
1257 | 1257 | initdb -D /usr/local/pgsql/data |
1258 | 1258 | postmaster -D /usr/local/pgsql/data |
1259 | | -psql -f backuptemplate1 |
| 1259 | +psql -f backuppostgres |
1260 | 1260 | </programlisting> |
1261 | 1261 |
|
1262 | 1262 | See <xref linkend="runtime"> about ways to start and stop the |
|