Problem with backing up a large database

From: Athanasios Kostopoulos <athanasios(dot)kostopoulos(at)classmarkets(dot)com>
To: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Problem with backing up a large database
Date: 2013-08-20 08:04:11
Message-ID: CAFnWstPO+tNhpkALdH-PE5SAq5cGMUnOhDCzuB7rgJxcnTpQww@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Luca Ferrari 2013-08-20 11:05:36 Re: Problem with backing up a large database
Previous Message Athanasios Kostopoulos 2013-08-19 08:46:18 Re: sudo/access to the postres OS user