1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-11-30 09:47:53 +02:00
Commit Graph

54 Commits

Author SHA1 Message Date
Artur Zakirov
62953a7f81 Default --archive-timeout is 300 seconds 2017-03-24 14:24:29 +03:00
Artur Zakirov
f3bdedcf4d Add backup option --archive-timeout 2017-03-24 14:07:03 +03:00
Artur Zakirov
515150cff1 Allow page backups from standby 2017-03-22 11:50:29 +03:00
Artur Zakirov
6a79870ce9 Disallow page backups from standby 2017-03-13 16:22:48 +03:00
Artur Zakirov
9ace401921 Refactoring do_restore() and do_validate(). Check tablespace mapping before actual restore 2017-02-28 20:00:18 +03:00
Artur Zakirov
320d0b6e70 Fix the documentation. Add information about tablespace mapping option. 2017-02-28 12:45:10 +03:00
Artur Zakirov
5fee804c15 Fix pg_probackup.md 2017-02-27 19:11:13 +03:00
Arthur Zakirov
195530ebbb Fix doc 2017-02-25 15:15:11 +03:00
Arthur Zakirov
d7b9fe0b18 Added tablespace-mapping option.
mkdirs.sh is not created now during backup.
Tests were updated.
2017-02-25 15:12:07 +03:00
Artur Zakirov
a3e5458166 Fix do_validate() and do_restore() 2017-02-16 19:44:16 +03:00
Arthur Zakirov
976694f1a3 Add retention show|purge commands. Add tests and documentation. 2017-02-12 23:42:10 +03:00
stalkerg
133573e4da Fix new line for doc 2016-11-28 17:15:25 +03:00
stalkerg
67214c9553 First version of new documentation. 2016-11-28 17:10:20 +03:00
stalkerg
2cdb902a11 I forget docs. :( 2016-11-17 12:55:19 +03:00
stalkerg
188bbdd593 Rename project to pg_probackup. 2016-11-16 20:34:21 +03:00
stalkerg
054226d2db Remove recovery-target- substring from restore option. 2016-11-16 19:41:16 +03:00
stalkerg
324efc064f Removed requirements wal_log_hints = on for pg_arman work. 2016-11-10 16:32:02 +03:00
stalkerg
44ac5f4c1b Hide not reliable options: --check, --keep-data-generations, --keep-data-days 2016-11-10 12:49:30 +03:00
stalkerg
c0b9b02752 Fix docs and use recovery time for show command. 2016-10-31 18:57:15 +03:00
stalkerg
af0e674cbb Add automatic detect of replica and remove same option. 2016-10-25 14:38:51 +03:00
stalkerg
6446aceec0 Update docs and readme for last changes. 2016-10-18 18:19:56 +03:00
stalkerg
e829899c0a Update doc 2016-09-29 17:39:56 +03:00
stalkerg
9f038eeb5e Add support backup from replica. 2016-09-29 17:33:21 +03:00
stalkerg
1fe3dbd224 Wrong place for docs. 2016-09-01 18:35:43 +03:00
stalkerg
733f05a80d Update docs. 2016-09-01 18:31:19 +03:00
Uriy Zhuravlev
4890370d01 Add ptrack to backup options. 2016-05-31 20:22:54 +03:00
stalkerg
f01d5755aa Add issue tracker to doc. 2016-05-31 16:34:45 +03:00
stalkerg
5102ff5c30 Fix doc. 2016-05-31 16:09:57 +03:00
Uriy Zhuravlev
8f0de84b7c Update pg_arman.md 2016-05-31 14:44:42 +03:00
Uriy Zhuravlev
5c2ce8a2cd Update pg_arman.md 2016-05-31 14:40:04 +03:00
Uriy Zhuravlev
d378c5690f Update pg_arman.md 2016-05-31 14:34:16 +03:00
stalkerg
f441157f10 Fix doc 2016-05-31 14:21:16 +03:00
stalkerg
ecb54929ea Some documentation fix. 2016-05-31 14:16:14 +03:00
stalkerg
85e97a184c Start move document to markdown 2016-05-31 14:08:51 +03:00
stalkerg
e413328f09 Change documentation format. 2016-05-31 13:55:26 +03:00
Michael Paquier
05601aa8f6 Correct mention that a full backup is needed after database creation
This restriction has been inherited from the upstream project pg_rman, however
the new differential facility is proving to be able to address that need quite
nicely after more testing regarding that.

Mentioned by Thomas Reiss.
2016-01-19 13:01:40 +09: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
f2c523b1ee Remove un-needed WAL segments from archive at backup deletion
During the execution of the "delete" command, the oldest start LSN is saved
and used to determine what is the oldest WAL segment that needs to be kept
for the existing backups. Like pg_archivecleanup, the implemented logic
ignores the timeline part of the WAL segment name, ensuring that a segment
from a parent timeline will not be removed prematurely. This logic could
be made more complicated regarding this matter, but in order to take backups
from a node on a given timeline this is far enough.
2016-01-18 16:11:47 +09:00
Michael Paquier
04834e73c7 Page-level backup using block tracking in WAL records
This commit improves the performance of page-level, or differential
backup, by not having to scan anymore all the pages of a relation file,
something that can be very long on large data sets, but by scanning the
list of blocks changed by WAL records since the last full or differential
backup.

As a restriction and to avoid potential data corruption should hint-bit
updates occur on a page, backups can only be taken from a server that has
wal_log_hints or data checksums enabled.

Base patch by Yury Zhuravlev, heavily modified by me.
2016-01-15 23:47:38 +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
3ac6d13329 Remove --compress-data/-Z
Performance of compression is quite questionable on many objects like
that and makes the routines aimed at managing file copy, backup and restore
more complicated than they should be.

This commit results in a largely simplified code in data.c, which will
be helpful when integrating differential backup using WAL file lookup.
2016-01-14 15:19:38 +09:00
Michael Paquier
6de8b16403 Incorporate new test facility in pg_arman
This new facility has the advantage on not relying on static data when
generating the tests making the whole facility more robust. This is
basically taken from the upstream project pg_rman and adapted for the
sake of this pet project, so most of the credit go to Kyotaro Horiguchi
and Amit Langote regarding this facility. However I have adapted a bunch
of things and fixed a lot of redundancy and code duplication.
2016-01-13 14:57:51 +09:00
Michael Paquier
55db450c6f Fix typos in docs
Report and patch by Zhuravlev Uriy.
2015-12-07 21:41:16 +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
5429f70807 Fix whitespaces and typos in documentation
The output of "show" command was incorrect as well.
2014-01-27 12:10:54 +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
7eb06cbc64 Add backup option --validate
This permits to validate a backup that has just been taken. Other
backups taken previously are ignored.
2014-01-17 22:42:27 +09:00
Michael Paquier
1868223c52 Use strong text for option names and underline option values
This makes the whole documentation more readable.
2014-01-12 03:50:13 +09:00