[GENERAL] Incremental / Level -1 backup in PG - Mailing list pgsql-general

From Rakesh Kumar
Subject [GENERAL] Incremental / Level -1 backup in PG
Date
Msg-id DM5PR2201MB15610955426547E18CFE63528C3C0@DM5PR2201MB1561.namprd22.prod.outlook.com
Whole thread Raw
Responses Re: [GENERAL] Incremental / Level -1 backup in PG  (Adrian Klaver <adrian.klaver@aklaver.com>)
Re: [GENERAL] Incremental / Level -1 backup in PG  (John R Pierce <pierce@hogranch.com>)
Re: [GENERAL] Incremental / Level -1 backup in PG  (Stephen Frost <sfrost@snowman.net>)
Re: [GENERAL] Incremental / Level -1 backup in PG  (Oleg Bartunov <obartunov@gmail.com>)
Re: [GENERAL] Incremental / Level -1 backup in PG  (Thomas Kellerer <spam_eater@gmx.net>)
List pgsql-general
PG does not have a concept of incremental  backup. The way it works in Oracle and other RDBMS is that incremental
backuponly backups up changed blocks since the last full backup.  So if only 10% of blocks changed since the last full
backup,incremental backup will be only for 10%. 
I am wondering whether it is technically feasible to implement it like this:

1 - At the time of full backup, note the last modified time of each data file in a repository.
2 - Next time when incremental backup runs, for every data file it will check the last modified time of it with the one
inthe repository to determine whether it has changed since last full backup. If yes, back it up. 

Now on to restore:

1 - First restore full backup.
2 - Restore incremental backup.

My question: Will it work in PG?


pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: [GENERAL] mysql_config_editor feature suggestion
Next
From: Adrian Klaver
Date:
Subject: Re: [GENERAL] Incremental / Level -1 backup in PG