Skip to content

Commit 1e2491e

Browse files
committed
Merge branch 'master' into issue_146
2 parents b3ac746 + a425a96 commit 1e2491e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+6164
-1674
lines changed

.gitignore

+11
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,14 @@
4747

4848
# Doc files
4949
/doc/*html
50+
51+
# Docker files
52+
/docker-compose.yml
53+
/Dockerfile
54+
/Dockerfile.in
55+
/run_tests.sh
56+
/make_dockerfile.sh
57+
/backup_restore.sh
58+
59+
# Misc
60+
.python-version

.travis.yml

+43-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,47 @@
1-
sudo: required
1+
os: linux
2+
3+
dist: bionic
4+
5+
language: c
26

37
services:
4-
- docker
8+
- docker
9+
10+
before_install:
11+
- cp travis/* .
12+
13+
install:
14+
- ./make_dockerfile.sh
15+
- docker-compose build
516

617
script:
7-
- docker run -v $(pwd):/tests --rm centos:7 /tests/travis/backup_restore.sh
18+
- docker-compose run tests
19+
# - docker-compose run $(bash <(curl -s https://codecov.io/env)) tests
20+
# - docker run -v $(pwd):/tests --rm centos:7 /tests/travis/backup_restore.sh
21+
22+
notifications:
23+
email:
24+
on_success: change
25+
on_failure: always
26+
27+
# Default MODE is basic, i.e. all tests with PG_PROBACKUP_TEST_BASIC=ON
28+
env:
29+
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE
30+
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE MODE=archive
31+
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE MODE=backup
32+
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE MODE=compression
33+
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE MODE=delta
34+
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE MODE=locking
35+
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE MODE=merge
36+
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE MODE=page
37+
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE MODE=replica
38+
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE MODE=retention
39+
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE MODE=restore
40+
- PG_VERSION=11 PG_BRANCH=REL_11_STABLE
41+
- PG_VERSION=10 PG_BRANCH=REL_10_STABLE
42+
- PG_VERSION=9.6 PG_BRANCH=REL9_6_STABLE
43+
- PG_VERSION=9.5 PG_BRANCH=REL9_5_STABLE
44+
45+
jobs:
46+
allow_failures:
47+
- if: env(MODE) IN (archive, backup, delta, locking, merge, replica, retention, restore)

Makefile

+4-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ OBJS += src/pg_crc.o src/datapagemap.o src/receivelog.o src/streamutil.o \
1515

1616
EXTRA_CLEAN = src/pg_crc.c src/datapagemap.c src/datapagemap.h \
1717
src/receivelog.c src/receivelog.h src/streamutil.c src/streamutil.h \
18-
src/xlogreader.c
18+
src/xlogreader.c src/instr_time.h
1919

20-
INCLUDES = src/datapagemap.h src/streamutil.h src/receivelog.h
20+
INCLUDES = src/datapagemap.h src/streamutil.h src/receivelog.h src/instr_time.h
2121

2222
ifdef USE_PGXS
2323
PG_CONFIG = pg_config
@@ -60,6 +60,8 @@ all: checksrcdir $(INCLUDES);
6060

6161
$(PROGRAM): $(OBJS)
6262

63+
src/instr_time.h: $(top_srcdir)/src/include/portability/instr_time.h
64+
rm -f $@ && $(LN_S) $(srchome)/src/include/portability/instr_time.h $@
6365
src/datapagemap.c: $(top_srcdir)/src/bin/pg_rewind/datapagemap.c
6466
rm -f $@ && $(LN_S) $(srchome)/src/bin/pg_rewind/datapagemap.c $@
6567
src/datapagemap.h: $(top_srcdir)/src/bin/pg_rewind/datapagemap.h

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![Build Status](https://travis-ci.com/postgrespro/pg_probackup.svg?branch=master)](https://travis-ci.com/postgrespro/pg_probackup)
2+
13
# pg_probackup
24

35
`pg_probackup` is a utility to manage backup and recovery of PostgreSQL database clusters. It is designed to perform periodic backups of the PostgreSQL instance that enable you to restore the server in case of a failure.
@@ -7,6 +9,7 @@ The utility is compatible with:
79

810
As compared to other backup solutions, `pg_probackup` offers the following benefits that can help you implement different backup strategies and deal with large amounts of data:
911
* Incremental backup: page-level incremental backup allows you to save disk space, speed up backup and restore. With three different incremental modes, you can plan the backup strategy in accordance with your data flow.
12+
* Merge: using this feature allows you to implement "incrementally updated backups" strategy, eliminating the need to to do periodical full backups.
1013
* Validation: automatic data consistency checks and on-demand backup validation without actual data recovery
1114
* Verification: on-demand verification of PostgreSQL instance with the `checkdb` command.
1215
* Retention: managing WAL archive and backups in accordance with retention policy. You can configure retention policy based on recovery time or the number of backups to keep, as well as specify `time to live` (TTL) for a particular backup. Expired backups can be merged or deleted.
@@ -37,8 +40,9 @@ Regardless of the chosen backup type, all backups taken with `pg_probackup` supp
3740

3841
`PTRACK` backup support provided via following options:
3942
* vanilla PostgreSQL compiled with ptrack patch. Currently there are patches for [PostgreSQL 9.6](https://gist.githubusercontent.com/gsmol/5b615c971dfd461c76ef41a118ff4d97/raw/e471251983f14e980041f43bea7709b8246f4178/ptrack_9.6.6_v1.5.patch) and [PostgreSQL 10](https://gist.githubusercontent.com/gsmol/be8ee2a132b88463821021fd910d960e/raw/de24f9499f4f314a4a3e5fae5ed4edb945964df8/ptrack_10.1_v1.5.patch)
40-
* Postgres Pro Standard 9.6, 10, 11
41-
* Postgres Pro Enterprise 9.6, 10, 11
43+
* vanilla PostgreSQL 12 with [ptrack extension](https://github.com/postgrespro/ptrack)
44+
* Postgres Pro Standard 9.6, 10, 11, 12
45+
* Postgres Pro Enterprise 9.6, 10, 11, 12
4246

4347
## Limitations
4448

0 commit comments

Comments
 (0)