- Notifications
You must be signed in to change notification settings - Fork5
Commit6ad8ac6
committed
Exclude additional directories in pg_basebackup
The list of files and directories that pg_basebackup excludes from thebackup was somewhat incomplete and unorganized. Change that with havingthe exclusion driven from tables. Clean up some code around it. Alsodocument the exclusions in more detail so that users of pg_start_backupcan make use of it as well.The contents of these directories are now excluded from the backup:pg_dynshmem, pg_notify, pg_serial, pg_snapshots, pg_subtransAlso fix a bug that a pg_repl_slot or pg_stat_tmp being a symlink wouldcause a corrupt tar header to be created. Now such symlinks areincluded in the backup as empty directories. Bug found by AshutoshSharma <ashu.coek88@gmail.com>.From: David Steele <david@pgmasters.net>Reviewed-by: Michael Paquier <michael.paquier@gmail.com>1 parentb82d5a2 commit6ad8ac6
File tree
5 files changed
+243
-100
lines changed- doc/src/sgml
- ref
- src
- backend/replication
- bin/pg_basebackup/t
5 files changed
+243
-100
lines changedLines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1089 | 1089 |
| |
1090 | 1090 |
| |
1091 | 1091 |
| |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
1092 | 1108 |
| |
1093 | 1109 |
| |
1094 | 1110 |
| |
|
Lines changed: 10 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2069 | 2069 |
| |
2070 | 2070 |
| |
2071 | 2071 |
| |
2072 |
| - | |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
2073 | 2075 |
| |
2074 | 2076 |
| |
2075 | 2077 |
| |
| |||
2082 | 2084 |
| |
2083 | 2085 |
| |
2084 | 2086 |
| |
2085 |
| - | |
| 2087 | + | |
| 2088 | + | |
| 2089 | + | |
| 2090 | + | |
| 2091 | + | |
2086 | 2092 |
| |
2087 | 2093 |
| |
2088 | 2094 |
| |
2089 | 2095 |
| |
2090 | 2096 |
| |
2091 |
| - | |
| 2097 | + | |
| 2098 | + | |
2092 | 2099 |
| |
2093 | 2100 |
| |
2094 | 2101 |
| |
|
Lines changed: 6 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
610 | 610 |
| |
611 | 611 |
| |
612 | 612 |
| |
613 |
| - | |
614 |
| - | |
615 |
| - | |
616 |
| - | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
617 | 619 |
| |
618 | 620 |
| |
619 | 621 |
| |
|
0 commit comments
Comments
(0)