You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-03 00:26:59 +02:00
Backup key/value annotations.
Allow key/value annotations to be added with the backup command and added/modified/removed with the new annotate command. Annotations can be viewed with the info command in text mode when --set is specified and are always included in JSON output.
This commit is contained in:
@ -3133,7 +3133,7 @@ testRun(void)
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------------------------------------------------------
|
||||
TEST_TITLE("online 11 full backup with tablespaces and bundles");
|
||||
TEST_TITLE("online 11 full backup with tablespaces, bundles and annotations");
|
||||
|
||||
backupTimeStart = BACKUP_EPOCH + 2400000;
|
||||
|
||||
@ -3150,6 +3150,8 @@ testRun(void)
|
||||
hrnCfgArgRawZ(argList, cfgOptBufferSize, "16K");
|
||||
hrnCfgArgRawBool(argList, cfgOptRepoBundle, true);
|
||||
hrnCfgArgRawBool(argList, cfgOptResume, false);
|
||||
hrnCfgArgRawZ(argList, cfgOptAnnotation, "extra key=this is an annotation");
|
||||
hrnCfgArgRawZ(argList, cfgOptAnnotation, "source=this is another annotation");
|
||||
HRN_CFG_LOAD(cfgCmdBackup, argList);
|
||||
|
||||
// Set to a smaller values than the defaults allow
|
||||
@ -3227,6 +3229,9 @@ testRun(void)
|
||||
"pg_tblspc/32768={\"path\":\"../../pg1-tblspc/32768\",\"tablespace-id\":\"32768\""
|
||||
",\"tablespace-name\":\"tblspc32768\",\"type\":\"link\"}\n"
|
||||
"\n"
|
||||
"[metadata]\n"
|
||||
"annotation={\"extra key\":\"this is an annotation\",\"source\":\"this is another annotation\"}\n"
|
||||
"\n"
|
||||
"[target:file]\n"
|
||||
"pg_data/PG_VERSION={\"checksum\":\"17ba0791499db908433b80f37c5fbc89b870084b\",\"size\":2"
|
||||
",\"timestamp\":1572200000}\n"
|
||||
|
Reference in New Issue
Block a user