forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitdc21234
committed
Add support for incremental backup.
To take an incremental backup, you use the new replication commandUPLOAD_MANIFEST to upload the manifest for the prior backup. Thisprior backup could either be a full backup or another incrementalbackup. You then use BASE_BACKUP with the INCREMENTAL option to takethe backup. pg_basebackup now has an --incremental=PATH_TO_MANIFESToption to trigger this behavior.An incremental backup is like a regular full backup except thatsome relation files are replaced with files with names likeINCREMENTAL.${ORIGINAL_NAME}, and the backup_label file containsadditional lines identifying it as an incremental backup. The newpg_combinebackup tool can be used to reconstruct a data directoryfrom a full backup and a series of incremental backups.Patch by me. Reviewed by Matthias van de Meent, Dilip Kumar, JakubWartak, Peter Eisentraut, and Álvaro Herrera. Thanks especially toJakub for incredibly helpful and extensive testing.Discussion:http://postgr.es/m/CA+TgmoYOYZfMCyOXFyC-P+-mdrZqm5pP2N7S-r0z3_402h9rsA@mail.gmail.com1 parent174c480 commitdc21234
File tree
49 files changed
+5834
-52
lines changed- doc/src/sgml
- ref
- src
- backend
- access/transam
- backup
- replication
- storage/ipc
- bin
- pg_basebackup
- t
- pg_combinebackup
- t
- pg_resetwal
- include
- access
- backup
- nodes
- test/perl/PostgreSQL/Test
- tools/pgindent
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
49 files changed
+5834
-52
lines changedLines changed: 85 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
857 | 857 |
| |
858 | 858 |
| |
859 | 859 |
| |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
860 | 926 |
| |
861 | 927 |
| |
862 | 928 |
| |
863 |
| - | |
864 |
| - | |
865 |
| - | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
866 | 933 |
| |
867 | 934 |
| |
868 | 935 |
| |
| |||
1118 | 1185 |
| |
1119 | 1186 |
| |
1120 | 1187 |
| |
1121 |
| - | |
| 1188 | + | |
| 1189 | + | |
1122 | 1190 |
| |
1123 | 1191 |
| |
1124 | 1192 |
| |
1125 | 1193 |
| |
1126 | 1194 |
| |
1127 | 1195 |
| |
1128 | 1196 |
| |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
1129 | 1210 |
| |
1130 | 1211 |
| |
1131 | 1212 |
| |
|
Lines changed: 0 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4153 | 4153 |
| |
4154 | 4154 |
| |
4155 | 4155 |
| |
4156 |
| - | |
4157 | 4156 |
| |
4158 | 4157 |
| |
4159 | 4158 |
| |
4160 | 4159 |
| |
4161 | 4160 |
| |
4162 |
| - | |
4163 | 4161 |
| |
4164 | 4162 |
| |
4165 | 4163 |
| |
|
Lines changed: 24 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2599 | 2599 |
| |
2600 | 2600 |
| |
2601 | 2601 |
| |
| 2602 | + | |
| 2603 | + | |
| 2604 | + | |
| 2605 | + | |
| 2606 | + | |
| 2607 | + | |
| 2608 | + | |
| 2609 | + | |
| 2610 | + | |
| 2611 | + | |
| 2612 | + | |
| 2613 | + | |
| 2614 | + | |
2602 | 2615 |
| |
2603 | 2616 |
| |
2604 | 2617 |
| |
| |||
2838 | 2851 |
| |
2839 | 2852 |
| |
2840 | 2853 |
| |
| 2854 | + | |
| 2855 | + | |
| 2856 | + | |
| 2857 | + | |
| 2858 | + | |
| 2859 | + | |
| 2860 | + | |
| 2861 | + | |
| 2862 | + | |
| 2863 | + | |
| 2864 | + | |
2841 | 2865 |
| |
2842 | 2866 |
| |
2843 | 2867 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
202 | 202 |
| |
203 | 203 |
| |
204 | 204 |
| |
| 205 | + | |
205 | 206 |
| |
206 | 207 |
| |
207 | 208 |
| |
|
Lines changed: 32 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 |
| - | |
45 |
| - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
46 | 60 |
| |
47 | 61 |
| |
48 | 62 |
| |
| |||
197 | 211 |
| |
198 | 212 |
| |
199 | 213 |
| |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
200 | 227 |
| |
201 | 228 |
| |
202 | 229 |
| |
|
0 commit comments
Comments
(0)