1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00
pgbackrest/lib/pgBackRest/Backup
Cynthia Shang 34c63276cd Automatically enable backup checksum delta when anomalies (e.g. timeline switch) are detected.
There are a number of cases where a checksum delta is more appropriate than the default time-based delta:

* Timeline has switched since the prior backup
* File timestamp is older than recorded in the prior backup
* File size changed but timestamp did not
* File timestamp is in the future compared to the start of the backup
* Online option has changed since the prior backup

A practical example is that checksum delta will be enabled after a failover to standby due to the timeline switch.  In this case, timestamps can't be trusted and our recommendation has been to run a full backup, which can impact the retention schedule and requires manual intervention.

Now, a checksum delta will be performed if the backup type is incr/diff.  This means more CPU will be used during the backup but the backup size will be smaller and the retention schedule will not be impacted.

Contributed by Cynthia Shang.
2018-11-01 11:31:25 -04:00
..
Filter The C library is now required. 2017-11-26 17:45:00 -05:00
Backup.pm Automatically enable backup checksum delta when anomalies (e.g. timeline switch) are detected. 2018-11-01 11:31:25 -04:00
Common.pm Configuration rules are now pulled from the C library when present. 2017-08-25 16:47:47 -04:00
File.pm Add checksum delta for incremental backups. 2018-09-19 11:12:45 -04:00
Info.pm Ensure latest db-id is selected on when matching archive.info to backup.info. 2018-01-30 16:49:47 -05:00