| От | Adam Rich |
|---|---|
| Тема | Re: Need help on how to backup a table |
| Дата | |
| Msg-id | 060901c890d7$f85b71d0$e9125570$@r@sbcglobal.net обсуждение исходный текст |
| Ответ на | Need help on how to backup a table (ajcity <victor.aluko@gmail.com>) |
| Список | pgsql-general |
> Hi all, > I am trying to backup a large table with about 6 million rows. I want > to > export the data from the table and be able to import it into another > table > on a different database server (from pgsql 8.1 to 8.2). I need to > export the > data through SQL query 'cause I want to do a gradual backup. > Does pgsql have a facility for this? > Thanks in advance for your reply. > Here's an easy solution: psql -c "COPY command here" dbname | ssh user@host.net "dd of=/path/tbl.backup" You can run this from your local server, and immediately pipe it over a secure shell to the other server, and write it to a file there. The /path/ you specify is local to the remote server.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера