Problem with backing up a large database

Поиск
Список
Период
Сортировка
От Athanasios Kostopoulos
Тема Problem with backing up a large database
Дата
Msg-id CAFnWstPO+tNhpkALdH-PE5SAq5cGMUnOhDCzuB7rgJxcnTpQww@mail.gmail.com
обсуждение исходный текст
Ответы Re: Problem with backing up a large database  (Luca Ferrari <fluca1978@infinito.it>)
Список pgsql-novice
Dear all,

I am trying to dump a large (appx 200Gb) database and exclude certain tables from it. The command I am using is the following (with IP/Port and DBname masked for obvious reasons:)

pg_dump -h XXX.XXX.XXX.XXX -p XXX -U postgres  -T feedimport_log -T error_item -T '^z*' -Fc some_large_db

However, my backups are quite large (thus it takes too much time to process them) and when I am doing a listing for tables that should not be there, I get the following (among others):

307; 1259 5501792 TABLE feedimport feedimport_log postgres

as well as the whole bunch of tables starting with z that I am trying to exclude using the regex.
Any pointers about what I might be doing wrong and how I can improve the backup process?

Thanks!

classmarkets GmbH | Schumannstraße 6 | 10117 Berlin | Deutschland
Tel: +49 (0)30 56 59 001-0 | Fax: +49 (0)30 56 59 001-99 | www.classmarkets.com

Amtsgericht Charlottenburg HRB 111815 B | USt.Id.Nr: DE 260731582
Geschäftsführer: Veit Mürz, Fabian Ströhle

Diese Nachricht (inklusive aller Anhänge) ist vertraulich. Sie darf ausschließlich durch den vorgesehenen Empfänger und Adressaten gelesen, kopiert oder genutzt werden. Sollten Sie diese Nachricht versehentlich erhalten haben, bitten wir, den Absender (durch Antwort-E-Mail) hiervon unverzüglich zu informieren und die Nachricht zu löschen. Jede unerlaubte Nutzung oder Weitergabe des Inhalts dieser Nachricht, sei es vollständig oder teilweise, ist unzulässig. Bitte beachten Sie, dass E-Mail-Nachrichten an den Absender nicht für fristgebundene Mitteilungen geeignet sind. Fristgebundene Mitteilungen sind daher ausschließlich per Post oder per Telefax zu übersenden.

В списке pgsql-novice по дате отправления:

Предыдущее
От: Athanasios Kostopoulos
Дата:
Сообщение: Re: sudo/access to the postres OS user
Следующее
От: Luca Ferrari
Дата:
Сообщение: Re: Problem with backing up a large database