Re: Problem with backing up a large database - Mailing list pgsql-novice

From Athanasios Kostopoulos
Subject Re: Problem with backing up a large database
Date
Msg-id CAFnWstNQ1hn7PR4i3ZZRihqg5M9LMShFOuSmPOxQWCdUOzSU+A@mail.gmail.com
Whole thread Raw
In response to Re: Problem with backing up a large database  (Luca Ferrari <fluca1978@infinito.it>)
Responses Re: Problem with backing up a large database
List pgsql-novice
Thank you for your reply Luca. Regarding the regular expression, I need to exclude all tables starting with z thus ^z. I am not sure about the star, should I do something along the lines of ^z[Aa-Zz|0-9]* to catch all cases? (if there is a regular expression help mailing list, feel free to point me to it :) )


On Tue, Aug 20, 2013 at 1:05 PM, Luca Ferrari <fluca1978@infinito.it> wrote:
2013/8/20 Athanasios Kostopoulos <athanasios.kostopoulos@classmarkets.com>:
> 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


Works for me on 9.2.4.
I'm not sure the regular expression is correct, so I would try only
with 'z*' (as it is I read it as something that matches any z).

Luca


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 by date:

Previous
From: Luca Ferrari
Date:
Subject: Re: Problem with backing up a large database
Next
From: Vik Fearing
Date:
Subject: Re: Problem with backing up a large database