From: | Athanasios Kostopoulos <athanasios(dot)kostopoulos(at)classmarkets(dot)com> |
---|---|
To: | Luca Ferrari <fluca1978(at)infinito(dot)it> |
Cc: | "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org> |
Subject: | Re: Problem with backing up a large database |
Date: | 2013-08-20 11:47:33 |
Message-ID: | CAFnWstNQ1hn7PR4i3ZZRihqg5M9LMShFOuSmPOxQWCdUOzSU+A@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)infinito(dot)it> wrote:
> 2013/8/20 Athanasios Kostopoulos <athanasios(dot)kostopoulos(at)classmarkets(dot)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.
From | Date | Subject | |
---|---|---|---|
Next Message | Vik Fearing | 2013-08-20 12:06:22 | Re: Problem with backing up a large database |
Previous Message | Luca Ferrari | 2013-08-20 11:05:36 | Re: Problem with backing up a large database |