1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-11-24 08:52:38 +02:00
Commit Graph

37 Commits

Author SHA1 Message Date
Anastasia
12cc3a1491 Format change backup.conf is renamed to backup.control 2017-04-19 12:01:10 +03:00
Anastasia
f833ca624b Code cleanup: backup, restore. Still WIP. Something can be broken. 2017-04-18 11:41:02 +03:00
Anastasia
75534a00be Code cleanup. Unify restore and validate. Remove unused functions. 2017-04-13 19:37:29 +03:00
Artur Zakirov
3c7d773cfa Fix show command result alignment 2017-03-22 11:46:31 +03:00
Anastasia
0fc1856e57 fix typo 2017-03-22 11:44:18 +03:00
Anastasia
10334c915b change time granularity in pg_probackup show to seconds 2017-03-22 11:13:06 +03:00
Anastasia
cbcbf5fc21 show start_lsn and stop_lsn in pg_probackup show 2017-03-20 19:08:18 +03:00
Artur Zakirov
8bd2248ac4 Do not skip subdirectories if parent directory contains a file 2017-03-09 14:01:11 +03:00
Artur Zakirov
30681560c0 Revert: Check in SHOW command that backups in RUNNING status 2017-03-06 12:46:15 +03:00
Artur Zakirov
6fedb2e546 Check in SHOW command that backups in RUNNING status 2017-03-06 11:55:12 +03:00
Artur Zakirov
b67dd1e2ea Update copyright 2017-03-01 16:50:07 +03:00
Anastasia
8775a399cb fix retention show message, when no policy is set 2017-02-15 19:46:40 +03:00
Artur Zakirov
4cb028cd97 Show dashes if there isn't recovery time of a backup 2017-02-14 17:45:18 +03:00
Arthur Zakirov
976694f1a3 Add retention show|purge commands. Add tests and documentation. 2017-02-12 23:42:10 +03:00
stalkerg
c084fee35c Fix show backup mode. 2016-11-17 18:16:04 +03:00
stalkerg
47a6afa46f Union current and parent tli for show command. 2016-11-16 21:49:32 +03:00
stalkerg
6c94ea7fb1 Correct help texts. 2016-11-16 21:32:26 +03:00
stalkerg
188bbdd593 Rename project to pg_probackup. 2016-11-16 20:34:21 +03:00
stalkerg
24c840392f Use --stream option only for backup. Add STREAM to show command. 2016-11-01 17:25:46 +03:00
stalkerg
c0b9b02752 Fix docs and use recovery time for show command. 2016-10-31 18:57:15 +03:00
stalkerg
9f2ad9d822 Remove date range and start use base36 from start_time as backup ID. 2016-10-31 18:19:11 +03:00
stalkerg
f0703e527c Remove ARCLOG_PATH option. 2016-10-18 20:22:53 +03:00
Zhuravlev Uriy aka stalkerg
9c475eccbf First version of ptrack support. 2016-02-27 21:07:55 +03:00
Michael Paquier
5c37daca69 Sanitize error checks
All the ERROR_* fields are removed in favor of a more simple layer
made of ERROR, FATAL, PANIC. The two last ones are not actually used
yet, thought there should be some code paths that would need more
polishing on this matter.

The error message emitted before leaving should be fine to let the
user know what is happening.
2016-01-19 12:41:30 +09:00
Michael Paquier
f94c5ab447 Sanitize logging facility
--debug and --verbose had actually the same meaning as they were aimed
at giving to the user information regarding how the process is running,
hence both options are merged into --verbose and use elog(LOG) to decide
if a given message should be printed out depending on the verbosity of
the call. This makes a couple of routines more readable as they do not
depend on any boolean checks.

The "_()" have been removed from the code, those are aimed at being used
for translation but having them mandatorily in each log message is just
useless noise. If needed, pgut.c should be updated in consequence to
have a more portable facility.

At the same time this commit takes care of putting into correct shape
some code paths more in-line with PostgreSQL policy. There are surely
more of this kind of ugly stuff but at this stage things are more simple
and more manageable.
2016-01-14 16:36:39 +09:00
Michael Paquier
db249c800e Replace incremental backup by page-level differential backup
This will allow the introduction of file-level differential backup.
2014-01-30 15:58:55 +09:00
Michael Paquier
c8ebcc9c41 Rename project to pg_arman
This is officially a fork!
2014-01-27 12:02:56 +09:00
Michael Paquier
820485d225 Strip off archive backup mode
This mode is not actually necessary if we consider that the core of
pg_rman is the obtention of differential and full backups, the server
being afterwards in charge to recover necessary WAL segments from the
archive.

Regression tests and documentation are updated in accordance to the
changes.
2014-01-24 22:37:55 +09:00
Michael Paquier
5988e6bd10 Remove server backup feature
In order to keep only the core of pg_rman for incremental/differential
backup, this looks necessary and makes the code more simple. Including
server log files in a backup could be subject to discussion as well,
as for example a Postgres base backup does not include them, just
because in this case server instance is not aware of the log files.
2014-01-24 20:37:13 +09:00
Michael Paquier
37c3be1168 Refactor write/read calculation size of backups
This commit simplifies the way backup sizes are saved internally by
reusing the same variable for incremental and full backup, which were
using separated and exclusively used variables, resulted in a couple
of bytes wasted all the time. This was also reflected by a useless
column in the output table of subcommand "show".
2014-01-10 04:11:27 +09:00
Michael Paquier
05ce188607 Simplify code related to HAVE_DATABASE, HAVE_ARCLOG, TOTAL_READ_SIZE
Those macros were mainly used in code paths where they didn't make that
much sense, complicating heavily the code. Correct at the same time some
code comments.
2013-12-16 00:30:49 +09:00
Michael Paquier
fd8bde8e10 Merge "show timeline" and "show" as a single command
It is just troublesome to have to type a subcommands for something that
could be merged into a single table. The output could be made in a
smarter way though...
2013-12-13 00:54:27 +09:00
otsuka.knj@gmail.com
98b6bac4b9 Convert newline characters from CRLF to LF.
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@70 182aca00-e38e-11de-a668-6fd11605f5ce
2013-01-24 06:35:48 +00:00
t.katsumata1122
78eed96f63 revised for pg_rman1.2.2
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@48 182aca00-e38e-11de-a668-6fd11605f5ce
2011-11-28 04:22:05 +00:00
katsumata.tomonari@oss.ntt.co.jp
566c47a6fc release pg_rman-1.2.0.
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@38 182aca00-e38e-11de-a668-6fd11605f5ce
2011-02-07 01:57:11 +00:00
itagaki.takahiro
4df4b1644f Sync the latest pgut and update copyrights.
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@28 182aca00-e38e-11de-a668-6fd11605f5ce
2010-01-06 02:25:21 +00:00
itagaki.takahiro
7fbb857d03 First import.
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@2 182aca00-e38e-11de-a668-6fd11605f5ce
2009-12-08 00:21:28 +00:00