pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomi N/A <hefest@gmail.com>
To: john.abraham@sysbuild.net
Cc: tommaso.taruffi@ricesoft.it
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Backup with Java
Date: Mon, 27 Nov 2006 23:41:22 +0000
Message-ID: <d487eb8e0611271541v555fc214k783973312daf44b3@mail.gmail.com> (raw)
In-Reply-To: <!&!AAAAAAAAAAAYAAAAAAAAAIDzGk8I/H1JpJ6cNyDvhCnCgAAAEAAAAOPEnk5uicJDvN4FOaYInLMBAAAAAA==@sysbuild.net>
References: <456afd7a.330.e42.37531057@webh5.fe.aruba.it>
	<!&!AAAAAAAAAAAYAAAAAAAAAIDzGk8I/H1JpJ6cNyDvhCnCgAAAEAAAAOPEnk5uicJDvN4FOaYInLMBAAAAAA==@sysbuild.net>

2006/11/27, John S.Abraham <john.abraham@sysbuild.net>:
>
> Tommaso:
>
> Why not try pg_dumpall, instead?
>
> The file that this command creates allows a complete regeneration of the
> database cluster, including users and user permissions. Even better, its
> already written and you can schedule it using the UNIX/LINUX command 'cron'.

Because, for instance, calling pg_dumpall has a number of shortcomings:

1.) access rights
You have to have a shell/ftp/other account on the machine or make the
network admin give you some other sort of network access (samba, nfs)
so that you can work with backup files.
You also have to be allowed to define cron tasks and have a
potentially large disk space quota.
2.) event based dump
cron is a nice way to make sure a backup gets done, but sometimes
backups make sense in relation to critical events in the system: e.g.
before occasional massive data imports or updates.
In those circumstances, having, say, a special stored procedure which
backs up the whole database and returns the content to the caller over
the network would enable a programmer building an application in *any*
language to add a manual backup feature which the users could then use
at will.
3.) Misc. nuisances
Aside for backup/restore functionality, a user communicates with the
database exclusively with the connection string. Making sure that your
application (even one which isn't multiplatform) will find the pg_*
tools is an additional issue you have to think of and resolve, instead
of sending a request directly to the database server (calling a backup
procedure), like you do generally when you need something from the
RDBMS server.

Cheers,
t.n.a.



view thread (26+ messages)  latest in thread

Message-ID: <d487eb8e0611271541v555fc214k783973312daf44b3@mail.gmail.com>
Permalink:  ../d487eb8e0611271541v555fc214k783973312daf44b3@mail.gmail.com/
Also on:    postgresql.org/message-id/d487eb8e0611271541v555fc214k783973312daf44b3@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: hefest@gmail.com, john.abraham@sysbuild.net, tommaso.taruffi@ricesoft.it
  Subject: Re: Backup with Java
  In-Reply-To: <d487eb8e0611271541v555fc214k783973312daf44b3@mail.gmail.com>
  References: <456afd7a.330.e42.37531057@webh5.fe.aruba.it> <!&!AAAAAAAAAAAYAAAAAAAAAIDzGk8I/H1JpJ6cNyDvhCnCgAAAEAAAAOPEnk5uicJDvN4FOaYInLMBAAAAAA==@sysbuild.net> <d487eb8e0611271541v555fc214k783973312daf44b3@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox