@@ -93,17 +93,17 @@ do_backup_database(parray *backup_list, pgBackupOption bkupopt)
93
93
current .tli = get_current_timeline ();
94
94
95
95
/*
96
- * Inincremental backup mode, check if there is an already-validated
96
+ * Indifferential backup mode, check if there is an already-validated
97
97
* full backup on current timeline.
98
98
*/
99
- if (current .backup_mode == BACKUP_MODE_INCREMENTAL )
99
+ if (current .backup_mode == BACKUP_MODE_DIFF_PAGE )
100
100
{
101
101
pgBackup * prev_backup ;
102
102
103
103
prev_backup = catalog_get_last_data_backup (backup_list ,current .tli );
104
104
if (prev_backup == NULL )
105
105
elog (ERROR_SYSTEM ,_ ("Valid full backup not found for "
106
- "incremental backup. Either create a full backup "
106
+ "differential backup. Either create a full backup "
107
107
"or validate existing one." ));
108
108
}
109
109
@@ -154,10 +154,10 @@ do_backup_database(parray *backup_list, pgBackupOption bkupopt)
154
154
files = NULL ;
155
155
156
156
/*
157
- * To takeincremental backup, the file list of the last completed database
157
+ * To takedifferential backup, the file list of the last completed database
158
158
* backup is needed.
159
159
*/
160
- if (current .backup_mode == BACKUP_MODE_INCREMENTAL )
160
+ if (current .backup_mode == BACKUP_MODE_DIFF_PAGE )
161
161
{
162
162
pgBackup * prev_backup ;
163
163
@@ -287,7 +287,7 @@ do_backup_database(parray *backup_list, pgBackupOption bkupopt)
287
287
elog (ERROR_SYSTEM ,_ ("tablespace storage directory doesn't exist: %s" ),mp );
288
288
289
289
/*
290
- * create the previous backup file list to takeincremental backup
290
+ * create the previous backup file list to takedifferential backup
291
291
* from the snapshot volume.
292
292
*/
293
293
if (prev_files != NULL )
@@ -392,10 +392,10 @@ do_backup_database(parray *backup_list, pgBackupOption bkupopt)
392
392
continue ;
393
393
/*
394
394
* Count only the amount of data. For a full backup, the total
395
- * amount of data written counts while for anincremental
395
+ * amount of data written counts while for andifferential
396
396
* backup only the data read counts.
397
397
*/
398
- if (current .backup_mode == BACKUP_MODE_INCREMENTAL )
398
+ if (current .backup_mode == BACKUP_MODE_DIFF_PAGE )
399
399
current .data_bytes += file -> read_size ;
400
400
else if (current .backup_mode == BACKUP_MODE_FULL )
401
401
current .data_bytes += file -> size ;
@@ -514,7 +514,7 @@ do_backup(pgBackupOption bkupopt)
514
514
515
515
/* Database data */
516
516
if (current .backup_mode == BACKUP_MODE_FULL ||
517
- current .backup_mode == BACKUP_MODE_INCREMENTAL )
517
+ current .backup_mode == BACKUP_MODE_DIFF_PAGE )
518
518
total_read += current .data_bytes ;
519
519
520
520
if (total_read == 0 )
@@ -821,7 +821,9 @@ backup_cleanup(bool fatal, void *userdata)
821
821
}
822
822
}
823
823
824
- /* take incremental backup. */
824
+ /*
825
+ * Take differential backup at page level.
826
+ */
825
827
static void
826
828
backup_files (const char * from_root ,
827
829
const char * to_root ,