1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00
pgbackrest/test
Cynthia Shang c5241e5007 Expire WAL archive only when repo-retention-archive threshold is met.
Previously when retention-archive was set (either by the user or by default), archives prior to the archive-start of the oldest remaining full backup (after backup expiration occurred) would be expired even though the retention-archive threshold had not been met. For example, if there were 1 full backup remaining after backup expiration and the retention-archive was set to 2 and retention-archive-type=full, then archives prior to the archive-start of the remaining full backup would still be removed even though retention-archive required 2 full backups remaining before archives should be expired.

The thought was to keep the archive directory clean and since the full backup did not require prior archives, it was safe to delete them. However, this has caused problems for some users in the past (because they needed the WAL for other purposes) and with the new adhoc and time-based retention features, it was decided that the archives should remain until the threshold was met. The archives will eventually be removed and if having them causes space issues, the expire command and the retention-archive can always be run and adjusted.
2020-04-29 08:06:49 -04:00
..
certificate New test containers with static test certificates. 2018-11-21 18:13:37 -05:00
code-count v2.26: Non-blocking TLS 2020-04-20 15:44:31 -04:00
data Automate generation of WAL and pg_control test files. 2017-11-18 20:02:54 -05:00
expect Expire WAL archive only when repo-retention-archive threshold is met. 2020-04-29 08:06:49 -04:00
lib/pgBackRestTest Expire WAL archive only when repo-retention-archive threshold is met. 2020-04-29 08:06:49 -04:00
src Expire WAL archive only when repo-retention-archive threshold is met. 2020-04-29 08:06:49 -04:00
.gitignore Move coverage results to test/result. 2020-03-14 15:29:42 -04:00
container.yaml Add lz4 compression support. 2020-03-10 14:45:27 -04:00
define.yaml Add --set option to the expire command. 2020-04-27 14:00:36 -04:00
test.pl Update RHEL package location (again). 2020-04-21 10:51:38 -04:00
travis.pl Update packages required for each CI job. 2020-03-26 22:20:09 -04:00
Vagrantfile Add Cirrus CI and Vagrant configuration for FreeBSD and MacOS. 2020-04-16 14:13:53 -04:00