| From: | Grega Bremec <gregab(at)p0f(dot)net> |
|---|---|
| To: | pgsql-admin(at)postgresql(dot)org |
| Cc: | Rajesh Kumar Mallah <mallah(dot)rajesh(at)gmail(dot)com> |
| Subject: | Re: FW: Setting up of PITR system. |
| Date: | 2006-04-01 10:44:58 |
| Message-ID: | 442E59AA.7010106@p0f.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
Grega Bremec wrote:
| ~ find ${WAL_ARCHIVE} -type f | sort -g | while read archive; do
| ~ if [ ! "${archive}" = "${REF_FILE}" ]; then
Actually, this test is only possible since ${REF_FILE} was expanded
using the ${WAL_FILE} mask and will contain full path to the log; if you
used your old method to obtain ${REF_FILE}, it will NOT match here, as
it only contains the filename. You should write the test like this:
~ if [ ! "`basename ${archive}`" = "${REF_FILE}" ]; then
~ ...
Kind regards,
- --
~ Grega Bremec
~ gregab at p0f dot net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFELlmqfu4IwuB3+XoRA7PNAJ9Ks5+6l0dmAgeIixcofNTUjXy3FgCfT+D1
kNvLWQIlKuo+GzF05IfPu2U=
=aiNg
-----END PGP SIGNATURE-----
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Rajesh Kumar Mallah | 2006-04-01 10:58:42 | Re: FW: Setting up of PITR system. |
| Previous Message | Andy Shellam | 2006-04-01 10:10:18 | Re: FW: Setting up of PITR system. |