You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2026-05-22 10:15:16 +02:00
Fix exclusions for special files.
Prior to 2.16 the Perl manifest code would skip any file that began with a dot. This was not intentional but it allowed PostgreSQL socket files to be located in the data directory. The new C code in 2.16 did not have this unintentional exclusion so socket files in the data directory caused errors. Worse, the file type error was being thrown before the exclusion check so there was really no way around the issue except to move the socket files out of the data directory. Special file types (e.g. socket, pipe) will now be automatically skipped and a warning logged to notify the user of the exclusion. The warning can be suppressed with an explicit --exclude. Reported by CluelessTechnologist, Janis Puris, Rachid Broum.
This commit is contained in:
@@ -325,6 +325,10 @@ repo1-type=s3
|
||||
|
||||
[global:backup]
|
||||
archive-copy=y
|
||||
exclude=postgresql.auto.conf
|
||||
exclude=pg_log/
|
||||
exclude=pg_log2
|
||||
exclude=apipe
|
||||
start-fast=y
|
||||
|
||||
+ supplemental file: /backup/db/[BACKUP-FULL-2]/backup.manifest
|
||||
@@ -618,6 +622,10 @@ repo1-type=s3
|
||||
|
||||
[global:backup]
|
||||
archive-copy=y
|
||||
exclude=postgresql.auto.conf
|
||||
exclude=pg_log/
|
||||
exclude=pg_log2
|
||||
exclude=apipe
|
||||
start-fast=y
|
||||
|
||||
+ supplemental file: /backup/db/[BACKUP-INCR-1]/backup.manifest
|
||||
@@ -818,6 +826,10 @@ repo1-type=s3
|
||||
|
||||
[global:backup]
|
||||
archive-copy=y
|
||||
exclude=postgresql.auto.conf
|
||||
exclude=pg_log/
|
||||
exclude=pg_log2
|
||||
exclude=apipe
|
||||
start-fast=y
|
||||
|
||||
+ supplemental file: /backup/db/[BACKUP-INCR-2]/backup.manifest
|
||||
@@ -1028,6 +1040,10 @@ repo1-type=s3
|
||||
|
||||
[global:backup]
|
||||
archive-copy=y
|
||||
exclude=postgresql.auto.conf
|
||||
exclude=pg_log/
|
||||
exclude=pg_log2
|
||||
exclude=apipe
|
||||
start-fast=y
|
||||
|
||||
+ supplemental file: /backup/db/[BACKUP-DIFF-1]/backup.manifest
|
||||
@@ -1234,6 +1250,10 @@ repo1-type=s3
|
||||
|
||||
[global:backup]
|
||||
archive-copy=y
|
||||
exclude=postgresql.auto.conf
|
||||
exclude=pg_log/
|
||||
exclude=pg_log2
|
||||
exclude=apipe
|
||||
start-fast=y
|
||||
|
||||
+ supplemental file: /backup/db/[BACKUP-DIFF-2]/backup.manifest
|
||||
@@ -1461,6 +1481,10 @@ repo1-type=s3
|
||||
|
||||
[global:backup]
|
||||
archive-copy=y
|
||||
exclude=postgresql.auto.conf
|
||||
exclude=pg_log/
|
||||
exclude=pg_log2
|
||||
exclude=apipe
|
||||
start-fast=y
|
||||
|
||||
+ supplemental file: /backup/db/[BACKUP-INCR-3]/backup.manifest
|
||||
@@ -1664,6 +1688,10 @@ repo1-type=s3
|
||||
|
||||
[global:backup]
|
||||
archive-copy=y
|
||||
exclude=postgresql.auto.conf
|
||||
exclude=pg_log/
|
||||
exclude=pg_log2
|
||||
exclude=apipe
|
||||
start-fast=y
|
||||
|
||||
+ supplemental file: /backup/db/[BACKUP-INCR-4]/backup.manifest
|
||||
@@ -1871,6 +1899,10 @@ repo1-type=s3
|
||||
|
||||
[global:backup]
|
||||
archive-copy=y
|
||||
exclude=postgresql.auto.conf
|
||||
exclude=pg_log/
|
||||
exclude=pg_log2
|
||||
exclude=apipe
|
||||
start-fast=y
|
||||
|
||||
+ supplemental file: /backup/db/[BACKUP-DIFF-3]/backup.manifest
|
||||
@@ -2076,6 +2108,10 @@ repo1-type=s3
|
||||
|
||||
[global:backup]
|
||||
archive-copy=y
|
||||
exclude=postgresql.auto.conf
|
||||
exclude=pg_log/
|
||||
exclude=pg_log2
|
||||
exclude=apipe
|
||||
start-fast=y
|
||||
|
||||
+ supplemental file: /backup/db/[BACKUP-INCR-5]/backup.manifest
|
||||
@@ -2285,6 +2321,10 @@ repo1-type=s3
|
||||
|
||||
[global:backup]
|
||||
archive-copy=y
|
||||
exclude=postgresql.auto.conf
|
||||
exclude=pg_log/
|
||||
exclude=pg_log2
|
||||
exclude=apipe
|
||||
start-fast=y
|
||||
|
||||
+ supplemental file: /backup/db/[BACKUP-DIFF-4]/backup.manifest
|
||||
@@ -2487,6 +2527,10 @@ repo1-type=s3
|
||||
|
||||
[global:backup]
|
||||
archive-copy=y
|
||||
exclude=postgresql.auto.conf
|
||||
exclude=pg_log/
|
||||
exclude=pg_log2
|
||||
exclude=apipe
|
||||
start-fast=y
|
||||
|
||||
+ supplemental file: /backup/db/[BACKUP-FULL-3]/backup.manifest
|
||||
@@ -3039,6 +3083,10 @@ repo1-type=s3
|
||||
|
||||
[global:backup]
|
||||
archive-copy=y
|
||||
exclude=postgresql.auto.conf
|
||||
exclude=pg_log/
|
||||
exclude=pg_log2
|
||||
exclude=apipe
|
||||
start-fast=y
|
||||
|
||||
+ supplemental file: /backup/db/[BACKUP-DIFF-5]/backup.manifest
|
||||
@@ -3346,7 +3394,7 @@ info bogus stanza - bogus stanza (db-master host)
|
||||
diff backup - config file not validated on remote (backup host)
|
||||
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --log-level-console=info --type=diff --stanza=db backup
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
P00 INFO: backup command begin [BACKREST-VERSION]: --compress --compress-level=3 --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --lock-path=[TEST_PATH]/backup/lock --log-level-console=info --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --log-subprocess --no-log-timestamp --no-online --pg1-host=db-master --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-master/pgbackrest.conf --pg1-host-user=[USER-2] --pg1-path=[TEST_PATH]/db-master/db/base-2/base --process-max=2 --protocol-timeout=60 --repo1-cipher-pass=<redacted> --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-s3-bucket=pgbackrest-dev --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key=<redacted> --repo1-s3-key-secret=<redacted> --repo1-s3-region=us-east-1 --no-repo1-s3-verify-tls --repo1-type=s3 --stanza=db --start-fast --type=diff
|
||||
P00 INFO: backup command begin [BACKREST-VERSION]: --compress --compress-level=3 --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --exclude=postgresql.auto.conf --exclude=pg_log/ --exclude=pg_log2 --exclude=apipe --lock-path=[TEST_PATH]/backup/lock --log-level-console=info --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --log-subprocess --no-log-timestamp --no-online --pg1-host=db-master --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-master/pgbackrest.conf --pg1-host-user=[USER-2] --pg1-path=[TEST_PATH]/db-master/db/base-2/base --process-max=2 --protocol-timeout=60 --repo1-cipher-pass=<redacted> --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-s3-bucket=pgbackrest-dev --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key=<redacted> --repo1-s3-key-secret=<redacted> --repo1-s3-region=us-east-1 --no-repo1-s3-verify-tls --repo1-type=s3 --stanza=db --start-fast --type=diff
|
||||
P00 WARN: option repo1-retention-full is not set, the repository may run out of space
|
||||
HINT: to retain full backups indefinitely (without warning), set option 'repo1-retention-full' to the maximum.
|
||||
P00 INFO: last backup label = [BACKUP-FULL-3], version = [VERSION-1]
|
||||
@@ -3355,7 +3403,7 @@ P00 INFO: diff backup size = 9B
|
||||
P00 INFO: new backup label = [BACKUP-DIFF-6]
|
||||
P00 INFO: http statistics:[HTTP-STATISTICS]
|
||||
P00 INFO: backup command end: completed successfully
|
||||
P00 INFO: expire command begin [BACKREST-VERSION]: --compress --compress-level=3 --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --lock-path=[TEST_PATH]/backup/lock --log-level-console=info --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --log-subprocess --no-log-timestamp --no-online --pg1-host=db-master --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-master/pgbackrest.conf --pg1-host-user=[USER-2] --pg1-path=[TEST_PATH]/db-master/db/base-2/base --process-max=2 --protocol-timeout=60 --repo1-cipher-pass=<redacted> --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-s3-bucket=pgbackrest-dev --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key=<redacted> --repo1-s3-key-secret=<redacted> --repo1-s3-region=us-east-1 --no-repo1-s3-verify-tls --repo1-type=s3 --stanza=db --start-fast --type=diff
|
||||
P00 INFO: expire command begin [BACKREST-VERSION]: --compress --compress-level=3 --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --exclude=postgresql.auto.conf --exclude=pg_log/ --exclude=pg_log2 --exclude=apipe --lock-path=[TEST_PATH]/backup/lock --log-level-console=info --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --log-subprocess --no-log-timestamp --no-online --pg1-host=db-master --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-master/pgbackrest.conf --pg1-host-user=[USER-2] --pg1-path=[TEST_PATH]/db-master/db/base-2/base --process-max=2 --protocol-timeout=60 --repo1-cipher-pass=<redacted> --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-s3-bucket=pgbackrest-dev --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key=<redacted> --repo1-s3-key-secret=<redacted> --repo1-s3-region=us-east-1 --no-repo1-s3-verify-tls --repo1-type=s3 --stanza=db --start-fast --type=diff
|
||||
P00 INFO: option 'repo1-retention-archive' is not set - archive logs will not be expired
|
||||
P00 INFO: http statistics:[HTTP-STATISTICS]
|
||||
P00 INFO: expire command end: completed successfully
|
||||
@@ -3424,6 +3472,10 @@ repo1-type=s3
|
||||
|
||||
[global:backup]
|
||||
archive-copy=y
|
||||
exclude=postgresql.auto.conf
|
||||
exclude=pg_log/
|
||||
exclude=pg_log2
|
||||
exclude=apipe
|
||||
start-fast=y
|
||||
|
||||
+ supplemental file: /backup/db/[BACKUP-DIFF-6]/backup.manifest
|
||||
@@ -3556,7 +3608,7 @@ db-version="9.4"
|
||||
diff backup - option backup-standby reset - backup performed from master (backup host)
|
||||
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --log-level-console=info --backup-standby --type=diff --stanza=db backup
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
P00 INFO: backup command begin [BACKREST-VERSION]: --backup-standby --compress --compress-level=3 --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --lock-path=[TEST_PATH]/backup/lock --log-level-console=info --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --log-subprocess --no-log-timestamp --no-online --pg1-host=db-master --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-master/pgbackrest.conf --pg1-host-user=[USER-2] --pg1-path=[TEST_PATH]/db-master/db/base-2/base --process-max=2 --protocol-timeout=60 --repo1-cipher-pass=<redacted> --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-s3-bucket=pgbackrest-dev --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key=<redacted> --repo1-s3-key-secret=<redacted> --repo1-s3-region=us-east-1 --no-repo1-s3-verify-tls --repo1-type=s3 --stanza=db --start-fast --type=diff
|
||||
P00 INFO: backup command begin [BACKREST-VERSION]: --backup-standby --compress --compress-level=3 --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --exclude=postgresql.auto.conf --exclude=pg_log/ --exclude=pg_log2 --exclude=apipe --lock-path=[TEST_PATH]/backup/lock --log-level-console=info --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --log-subprocess --no-log-timestamp --no-online --pg1-host=db-master --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-master/pgbackrest.conf --pg1-host-user=[USER-2] --pg1-path=[TEST_PATH]/db-master/db/base-2/base --process-max=2 --protocol-timeout=60 --repo1-cipher-pass=<redacted> --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-s3-bucket=pgbackrest-dev --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key=<redacted> --repo1-s3-key-secret=<redacted> --repo1-s3-region=us-east-1 --no-repo1-s3-verify-tls --repo1-type=s3 --stanza=db --start-fast --type=diff
|
||||
P00 WARN: option repo1-retention-full is not set, the repository may run out of space
|
||||
HINT: to retain full backups indefinitely (without warning), set option 'repo1-retention-full' to the maximum.
|
||||
P00 WARN: option backup-standby is enabled but standby is not properly configured - backups will be performed from the master
|
||||
@@ -3566,7 +3618,7 @@ P00 INFO: diff backup size = 9B
|
||||
P00 INFO: new backup label = [BACKUP-DIFF-7]
|
||||
P00 INFO: http statistics:[HTTP-STATISTICS]
|
||||
P00 INFO: backup command end: completed successfully
|
||||
P00 INFO: expire command begin [BACKREST-VERSION]: --backup-standby --compress --compress-level=3 --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --lock-path=[TEST_PATH]/backup/lock --log-level-console=info --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --log-subprocess --no-log-timestamp --no-online --pg1-host=db-master --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-master/pgbackrest.conf --pg1-host-user=[USER-2] --pg1-path=[TEST_PATH]/db-master/db/base-2/base --process-max=2 --protocol-timeout=60 --repo1-cipher-pass=<redacted> --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-s3-bucket=pgbackrest-dev --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key=<redacted> --repo1-s3-key-secret=<redacted> --repo1-s3-region=us-east-1 --no-repo1-s3-verify-tls --repo1-type=s3 --stanza=db --start-fast --type=diff
|
||||
P00 INFO: expire command begin [BACKREST-VERSION]: --backup-standby --compress --compress-level=3 --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --exclude=postgresql.auto.conf --exclude=pg_log/ --exclude=pg_log2 --exclude=apipe --lock-path=[TEST_PATH]/backup/lock --log-level-console=info --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --log-subprocess --no-log-timestamp --no-online --pg1-host=db-master --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-master/pgbackrest.conf --pg1-host-user=[USER-2] --pg1-path=[TEST_PATH]/db-master/db/base-2/base --process-max=2 --protocol-timeout=60 --repo1-cipher-pass=<redacted> --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-s3-bucket=pgbackrest-dev --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key=<redacted> --repo1-s3-key-secret=<redacted> --repo1-s3-region=us-east-1 --no-repo1-s3-verify-tls --repo1-type=s3 --stanza=db --start-fast --type=diff
|
||||
P00 INFO: option 'repo1-retention-archive' is not set - archive logs will not be expired
|
||||
P00 INFO: http statistics:[HTTP-STATISTICS]
|
||||
P00 INFO: expire command end: completed successfully
|
||||
@@ -3634,6 +3686,10 @@ repo1-type=s3
|
||||
|
||||
[global:backup]
|
||||
archive-copy=y
|
||||
exclude=postgresql.auto.conf
|
||||
exclude=pg_log/
|
||||
exclude=pg_log2
|
||||
exclude=apipe
|
||||
start-fast=y
|
||||
|
||||
+ supplemental file: /backup/db/[BACKUP-DIFF-7]/backup.manifest
|
||||
|
||||
Reference in New Issue
Block a user