X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0E73FDAA1F for ; Sun, 23 Oct 2005 13:10:10 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 56111-01 for ; Sun, 23 Oct 2005 16:10:07 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 0BB6ADAA2E for ; Sun, 23 Oct 2005 13:10:08 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.13.1/8.13.1) with ESMTP id j9NGA7Li056536 for ; Sun, 23 Oct 2005 16:10:07 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.13.1/8.13.1/Submit) id j9NG6UHv055809 for pgsql-admin@postgresql.org; Sun, 23 Oct 2005 16:06:30 GMT (envelope-from news) From: sualeh.fatehi@gmail.com X-Newsgroups: pgsql.admin Subject: Re: Monitoring database for changes - backup purposes Date: 23 Oct 2005 09:06:23 -0700 Organization: http://groups.google.com Lines: 73 Message-ID: <1130083583.468325.172110@g44g2000cwa.googlegroups.com> References: <434FB046.5070207@lancaster.ac.uk> <200510141059.39852.darcy@wavefire.com> <434FF90B.4060902@lancaster.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Complaints-To: groups-abuse@google.com In-Reply-To: <434FF90B.4060902@lancaster.ac.uk> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g44g2000cwa.googlegroups.com; posting-host=66.30.126.102; posting-account=L5deKg0AAABMdecbJWMduesEUKQ7r8VG To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=-2.642 required=5 tests=[ALL_TRUSTED=-2.82, NO_REAL_NAME=0.178] X-Spam-Level: X-Archive-Number: 200510/256 X-Sequence-Number: 19328 Chris, If you have a JDBC driver for pgsql, you can use SchemaCrawler. https://sourceforge.net/project/showfiles.php?group_id=148383 SchemaCrawler is a free, open source tool that can produce database schema metadata and/ or data output in a diff-able format. Sualeh. Chris Jewell wrote: > Hi, > > Yes, diff would work and is my current plan, but it requires me to > perform the backup first. What I needed really was a system by which a > backup would only be run if there was something that needed backing up. > > Thanks anyway, > > Chris > > -- > Chris Jewell, BSc(Hons), BVSc, MRCVS > Dept of Maths and Statistics > Fylde College > Lancaster University > Lancaster > Lancs > LA1 4YF > > > > Darcy Buskermolen wrote: > > >On Friday 14 October 2005 06:19, Chris Jewell wrote: > > > > > >>Hi, > >> > >>I have a query about a backup policy that I wish to implement. > >>Currently, we are running a PostgreSQL server with a very large database > >>on it. The database consists of a core of read-only tables, with tables > >>created by the users going by default into the user's own schemas. For > >>backup purposes, I have a script that uses pg_dump to create dumps of > >>the individual user schemas. However, this is mainly a read-only > >>database and information is added or updated only rarely. What I really > >>need is a method of monitoring the database, such that my backup script > >>will only back any one schema up if it has changed since it was last > >>backed up. Is there any way to do this? Is there a checksum function > >>or something that I could use? > >> > >> > > > >No there is not, but would a diff -q be sufficient for your needs ? > > > > > > > > > >>Thanks, > >> > >>Chris > >> > >> > > > > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq