@@ -93,17 +93,17 @@ do_backup_database(parray *backup_list, pgBackupOption bkupopt)
9393current .tli = get_current_timeline ();
9494
9595/*
96- * Inincremental backup mode, check if there is an already-validated
96+ * Indifferential backup mode, check if there is an already-validated
9797 * full backup on current timeline.
9898 */
99- if (current .backup_mode == BACKUP_MODE_INCREMENTAL )
99+ if (current .backup_mode == BACKUP_MODE_DIFF_PAGE )
100100{
101101pgBackup * prev_backup ;
102102
103103prev_backup = catalog_get_last_data_backup (backup_list ,current .tli );
104104if (prev_backup == NULL )
105105elog (ERROR_SYSTEM ,_ ("Valid full backup not found for "
106- "incremental backup. Either create a full backup "
106+ "differential backup. Either create a full backup "
107107"or validate existing one." ));
108108}
109109
@@ -154,10 +154,10 @@ do_backup_database(parray *backup_list, pgBackupOption bkupopt)
154154files = NULL ;
155155
156156/*
157- * To takeincremental backup, the file list of the last completed database
157+ * To takedifferential backup, the file list of the last completed database
158158 * backup is needed.
159159 */
160- if (current .backup_mode == BACKUP_MODE_INCREMENTAL )
160+ if (current .backup_mode == BACKUP_MODE_DIFF_PAGE )
161161{
162162pgBackup * prev_backup ;
163163
@@ -287,7 +287,7 @@ do_backup_database(parray *backup_list, pgBackupOption bkupopt)
287287elog (ERROR_SYSTEM ,_ ("tablespace storage directory doesn't exist: %s" ),mp );
288288
289289/*
290- * create the previous backup file list to takeincremental backup
290+ * create the previous backup file list to takedifferential backup
291291 * from the snapshot volume.
292292 */
293293if (prev_files != NULL )
@@ -392,10 +392,10 @@ do_backup_database(parray *backup_list, pgBackupOption bkupopt)
392392continue ;
393393/*
394394 * 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
396396 * backup only the data read counts.
397397 */
398- if (current .backup_mode == BACKUP_MODE_INCREMENTAL )
398+ if (current .backup_mode == BACKUP_MODE_DIFF_PAGE )
399399current .data_bytes += file -> read_size ;
400400else if (current .backup_mode == BACKUP_MODE_FULL )
401401current .data_bytes += file -> size ;
@@ -514,7 +514,7 @@ do_backup(pgBackupOption bkupopt)
514514
515515/* Database data */
516516if (current .backup_mode == BACKUP_MODE_FULL ||
517- current .backup_mode == BACKUP_MODE_INCREMENTAL )
517+ current .backup_mode == BACKUP_MODE_DIFF_PAGE )
518518total_read += current .data_bytes ;
519519
520520if (total_read == 0 )
@@ -821,7 +821,9 @@ backup_cleanup(bool fatal, void *userdata)
821821}
822822}
823823
824- /* take incremental backup. */
824+ /*
825+ * Take differential backup at page level.
826+ */
825827static void
826828backup_files (const char * from_root ,
827829const char * to_root ,