1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-02-13 13:59:28 +02:00

Implement issue #71: log a message when waiting for a checkpoint

Some other log improvements
This commit is contained in:
David Steele 2015-05-26 12:26:59 -04:00
parent 5c43e7035a
commit ca0c866d3b
13 changed files with 324 additions and 98 deletions

View File

@ -741,6 +741,8 @@ example: db-path=/data/db
* Allow comments/disabling in pg_backrest.conf using #. Suggested by Michael Renner.
* Better logging before pg_start_backup() to make it clear when the backup is waiting on a checkpoint. Suggested by Michael Renner.
* Replaced JSON module with JSON::PP which ships with core Perl.
### v0.65: Improved resume and restore logging, compact restores

View File

@ -695,6 +695,9 @@ Run a <id>full</id> backup on the <id>db</id> stanza. <param>--type</param> can
<release-feature>
<text>Allow comments/disabling in pg_backrest.conf using #. Suggested by Michael Renner.</text>
</release-feature>
<release-feature>
<text>Better logging before pg_start_backup() to make it clear when the backup is waiting on a checkpoint. Suggested by Michael Renner.</text>
</release-feature>
<release-feature>
<text>Replaced JSON module with JSON::PP which ships with core Perl.</text>
</release-feature>

View File

@ -540,7 +540,7 @@ sub backup_file
while (!$bDone);
}
&log(INFO, file_size_format($lSizeTotal) . ' total backup');
&log(INFO, 'total backup size: ' . file_size_format($lSizeTotal));
}
####################################################################################################################################
@ -553,6 +553,9 @@ sub backup
my $strDbClusterPath = shift;
my $bStartFast = shift;
# Backup start
&log(INFO, "backup start: type = ${strType}");
# Record timestamp start
my $strTimestampStart = timestamp_string_get();
@ -863,6 +866,9 @@ sub backup
# Create a link to the most recent backup
$oFile->remove(PATH_BACKUP_CLUSTER, "latest");
$oFile->link_create(PATH_BACKUP_CLUSTER, $strBackupPath, PATH_BACKUP_CLUSTER, "latest", undef, true);
# Backup stop
&log(INFO, 'backup stop');
}
####################################################################################################################################

View File

@ -177,8 +177,12 @@ sub backup_start
$bStartFast = false;
}
&log(INFO, "executing pg_start_backup() with label \"${strLabel}\": backup will begin after " .
($bStartFast ? "the requested immediate checkpoint" : "the next regular checkpoint") . " completes");
my @stryField = split("\t", trim($self->psql_execute("set client_min_messages = 'warning';" .
"copy (select to_char(current_timestamp, 'YYYY-MM-DD HH24:MI:SS.US TZ'), pg_xlogfile_name(xlog) from pg_start_backup('${strLabel}'" .
"copy (select to_char(current_timestamp, 'YYYY-MM-DD HH24:MI:SS.US TZ'), " .
"pg_xlogfile_name(xlog) from pg_start_backup('${strLabel}'" .
($bStartFast ? ', true' : '') . ') as xlog) to stdout')));
return $stryField[1], $stryField[0];
@ -191,6 +195,8 @@ sub backup_stop
{
my $self = shift;
&log(INFO, 'executing pg_stop_backup() and waiting for all WAL segments to be archived');
my @stryField = split("\t", trim($self->psql_execute("set client_min_messages = 'warning';" .
"copy (select to_char(clock_timestamp(), 'YYYY-MM-DD HH24:MI:SS.US TZ'), pg_xlogfile_name(xlog) from pg_stop_backup() as xlog) to stdout")));

View File

@ -936,6 +936,7 @@ sub BackRestTestCommon_ConfigCreate
}
$oParamHash{'global:backup'}{'archive-copy'} = 'y';
$oParamHash{'global:backup'}{'start-fast'} = 'y';
}
if (defined($bCompress) && !$bCompress)

View File

@ -4,6 +4,7 @@ run 001 - rmt 0, cmp 0, hardlink 0
full backup
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --manifest-save-threshold=3 --type=full --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = full
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -26,7 +27,7 @@ full backup
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base/base1.txt, destination_path_create = true
INFO: backup file [TEST_PATH]/db/common/base/base1.txt (4B, 100%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
DEBUG: manifest saved
INFO: 7B total backup
INFO: total backup size: 7B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
@ -34,12 +35,14 @@ full backup
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
full backup (resume)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --type=full --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = full
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -62,13 +65,14 @@ full backup (resume)
INFO: backup file [TEST_PATH]/db/common/PG_VERSION (3B, 42%) checksum e1f7a3a299f62225cba076fc6d3d6e677f303482
DEBUG: File->hash: backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/base/base/base1.txt, compressed = false, hash_type = sha1
INFO: checksum resumed file [TEST_PATH]/db/common/base/base1.txt (4B, 100%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
INFO: 7B total backup
INFO: total backup size: 7B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
@ -114,6 +118,7 @@ restore delta, backup '[BACKUP_LABEL]' (add and delete files)
incr backup (add tablespace 1)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -140,19 +145,21 @@ incr backup (add tablespace 1)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/1, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/1
INFO: backup file [TEST_PATH]/db/tablespace/ts1/tablespace1.txt (7B, 100%) checksum d85de07d6421d90aa9191c11c889bfde43680f0f
INFO: 18B total backup
INFO: total backup size: 18B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
incr backup (resume and add tablespace 2)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -185,19 +192,21 @@ incr backup (resume and add tablespace 2)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2
INFO: backup file [TEST_PATH]/db/tablespace/ts2/tablespace2.txt (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
INFO: 25B total backup
INFO: total backup size: 25B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (cannot resume - new diff)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -232,19 +241,21 @@ diff backup (cannot resume - new diff)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2
INFO: backup file [TEST_PATH]/db/tablespace/ts2/tablespace2.txt (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
INFO: 25B total backup
INFO: total backup size: 25B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (cannot resume - disabled)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --no-resume --type=diff --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -279,13 +290,14 @@ diff backup (cannot resume - disabled)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2
INFO: backup file [TEST_PATH]/db/tablespace/ts2/tablespace2.txt (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
INFO: 25B total backup
INFO: total backup size: 25B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
@ -396,6 +408,7 @@ restore, backup '[BACKUP_LABEL]', remap (remap all paths)
incr backup (add files and remove tablespace 2)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -422,19 +435,21 @@ incr backup (add files and remove tablespace 2)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2b.txt (8B, 100%) checksum e324463005236d83e6e54795dbddd20a74533bf3
INFO: 13B total backup
INFO: total backup size: 13B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
incr backup (update files)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -456,19 +471,21 @@ incr backup (update files)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base
INFO: backup file [TEST_PATH]/db/common-2/base/base1.txt (8B, 100%) checksum 9a53d532e27785e681766c98516a5e93f096a501
INFO: 8B total backup
INFO: total backup size: 8B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (no updates)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -506,19 +523,21 @@ diff backup (no updates)
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2b.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2b.txt, source_compressed = false, destination_compress = false, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2b.txt, destination_path_create = true
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2b.txt (8B, 100%) checksum e324463005236d83e6e54795dbddd20a74533bf3
INFO: 39B total backup
INFO: total backup size: 39B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
incr backup (remove files - but won't affect manifest)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --stanza=db backup --test --test-delay=1
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -541,12 +560,14 @@ incr backup (remove files - but won't affect manifest)
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (remove files during backup)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup --test --test-delay=1
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -578,19 +599,21 @@ diff backup (remove files during backup)
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt, source_compressed = false, destination_compress = false, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt, destination_path_create = true
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt (12B, 100%) checksum dfcb8679956b734706cf87259d50c88f83e80e66
INFO: 31B total backup
INFO: total backup size: 31B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
full backup
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --type=full --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = full
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -627,19 +650,21 @@ full backup
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt, source_compressed = false, destination_compress = false, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt, destination_path_create = true
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt (12B, 100%) checksum dfcb8679956b734706cf87259d50c88f83e80e66
INFO: 42B total backup
INFO: total backup size: 42B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (add files)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -661,13 +686,14 @@ diff backup (add files)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base
INFO: backup file [TEST_PATH]/db/common-2/base/base2.txt (9B, 100%) checksum cafac3c59553f2cfde41ce2e62e7662295f108c0
INFO: 9B total backup
INFO: total backup size: 9B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads

View File

@ -4,6 +4,7 @@ run 002 - rmt 0, cmp 0, hardlink 1
full backup
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --manifest-save-threshold=3 --type=full --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = full
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -26,7 +27,7 @@ full backup
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base/base1.txt, destination_path_create = true
INFO: backup file [TEST_PATH]/db/common/base/base1.txt (4B, 100%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
DEBUG: manifest saved
INFO: 7B total backup
INFO: total backup size: 7B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
@ -34,12 +35,14 @@ full backup
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
full backup (resume)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --type=full --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = full
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -62,13 +65,14 @@ full backup (resume)
INFO: backup file [TEST_PATH]/db/common/PG_VERSION (3B, 42%) checksum e1f7a3a299f62225cba076fc6d3d6e677f303482
DEBUG: File->hash: backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/base/base/base1.txt, compressed = false, hash_type = sha1
INFO: checksum resumed file [TEST_PATH]/db/common/base/base1.txt (4B, 100%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
INFO: 7B total backup
INFO: total backup size: 7B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
@ -114,6 +118,7 @@ restore delta, backup '[BACKUP_LABEL]' (add and delete files)
incr backup (add tablespace 1)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -150,19 +155,21 @@ incr backup (add tablespace 1)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/1, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/1
INFO: backup file [TEST_PATH]/db/tablespace/ts1/tablespace1.txt (7B, 100%) checksum d85de07d6421d90aa9191c11c889bfde43680f0f
INFO: 18B total backup
INFO: total backup size: 18B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
incr backup (resume and add tablespace 2)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -212,19 +219,21 @@ incr backup (resume and add tablespace 2)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2
INFO: backup file [TEST_PATH]/db/tablespace/ts2/tablespace2.txt (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
INFO: 25B total backup
INFO: total backup size: 25B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (cannot resume - new diff)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -271,19 +280,21 @@ diff backup (cannot resume - new diff)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2
INFO: backup file [TEST_PATH]/db/tablespace/ts2/tablespace2.txt (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
INFO: 25B total backup
INFO: total backup size: 25B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (cannot resume - disabled)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --no-resume --type=diff --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -330,13 +341,14 @@ diff backup (cannot resume - disabled)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2
INFO: backup file [TEST_PATH]/db/tablespace/ts2/tablespace2.txt (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
INFO: 25B total backup
INFO: total backup size: 25B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
@ -447,6 +459,7 @@ restore, backup '[BACKUP_LABEL]', remap (remap all paths)
incr backup (add files and remove tablespace 2)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -487,19 +500,21 @@ incr backup (add files and remove tablespace 2)
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2b.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2b.txt, source_compressed = false, destination_compress = false, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2b.txt, destination_path_create = true
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2b.txt (8B, 100%) checksum e324463005236d83e6e54795dbddd20a74533bf3
INFO: 13B total backup
INFO: total backup size: 13B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
incr backup (update files)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -540,19 +555,21 @@ incr backup (update files)
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common-2/base/base1.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/base/base/base1.txt, source_compressed = false, destination_compress = false, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base/base1.txt, destination_path_create = true
INFO: backup file [TEST_PATH]/db/common-2/base/base1.txt (8B, 100%) checksum 9a53d532e27785e681766c98516a5e93f096a501
INFO: 8B total backup
INFO: total backup size: 8B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (no updates)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -595,19 +612,21 @@ diff backup (no updates)
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2b.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2b.txt, source_compressed = false, destination_compress = false, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2b.txt, destination_path_create = true
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2b.txt (8B, 100%) checksum e324463005236d83e6e54795dbddd20a74533bf3
INFO: 39B total backup
INFO: total backup size: 39B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
incr backup (remove files - but won't affect manifest)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --stanza=db backup --test --test-delay=1
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -654,12 +673,14 @@ incr backup (remove files - but won't affect manifest)
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (remove files during backup)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup --test --test-delay=1
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -698,19 +719,21 @@ diff backup (remove files during backup)
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt, source_compressed = false, destination_compress = false, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt, destination_path_create = true
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt (12B, 100%) checksum dfcb8679956b734706cf87259d50c88f83e80e66
INFO: 31B total backup
INFO: total backup size: 31B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
full backup
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --type=full --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = full
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -747,19 +770,21 @@ full backup
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt, source_compressed = false, destination_compress = false, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt, destination_path_create = true
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt (12B, 100%) checksum dfcb8679956b734706cf87259d50c88f83e80e66
INFO: 42B total backup
INFO: total backup size: 42B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (add files)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -800,13 +825,14 @@ diff backup (add files)
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common-2/base/base2.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/base/base/base2.txt, source_compressed = false, destination_compress = false, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base/base2.txt, destination_path_create = true
INFO: backup file [TEST_PATH]/db/common-2/base/base2.txt (9B, 100%) checksum cafac3c59553f2cfde41ce2e62e7662295f108c0
INFO: 9B total backup
INFO: total backup size: 9B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads

View File

@ -4,6 +4,7 @@ run 003 - rmt 0, cmp 1, hardlink 0
full backup
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --manifest-save-threshold=3 --type=full --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = full
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -26,7 +27,7 @@ full backup
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base/base1.txt.gz, destination_path_create = true
INFO: backup file [TEST_PATH]/db/common/base/base1.txt (4B, 100%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
DEBUG: manifest saved
INFO: 7B total backup
INFO: total backup size: 7B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
@ -34,12 +35,14 @@ full backup
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
full backup (resume)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --type=full --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = full
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -64,13 +67,14 @@ full backup (resume)
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/base/base1.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/base/base/base1.txt.gz, source_compressed = false, destination_compress = true, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base/base1.txt.gz, destination_path_create = true
INFO: backup file [TEST_PATH]/db/common/base/base1.txt (4B, 100%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
INFO: 7B total backup
INFO: total backup size: 7B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
@ -116,6 +120,7 @@ restore delta, backup '[BACKUP_LABEL]' (add and delete files)
incr backup (add tablespace 1)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -142,19 +147,21 @@ incr backup (add tablespace 1)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/1, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/1
INFO: backup file [TEST_PATH]/db/tablespace/ts1/tablespace1.txt (7B, 100%) checksum d85de07d6421d90aa9191c11c889bfde43680f0f
INFO: 18B total backup
INFO: total backup size: 18B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
incr backup (resume and add tablespace 2)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -188,19 +195,21 @@ incr backup (resume and add tablespace 2)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2
INFO: backup file [TEST_PATH]/db/tablespace/ts2/tablespace2.txt (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
INFO: 25B total backup
INFO: total backup size: 25B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (cannot resume - new diff)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -235,19 +244,21 @@ diff backup (cannot resume - new diff)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2
INFO: backup file [TEST_PATH]/db/tablespace/ts2/tablespace2.txt (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
INFO: 25B total backup
INFO: total backup size: 25B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (cannot resume - disabled)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --no-resume --type=diff --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -282,13 +293,14 @@ diff backup (cannot resume - disabled)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2
INFO: backup file [TEST_PATH]/db/tablespace/ts2/tablespace2.txt (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
INFO: 25B total backup
INFO: total backup size: 25B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
@ -399,6 +411,7 @@ restore, backup '[BACKUP_LABEL]', remap (remap all paths)
incr backup (add files and remove tablespace 2)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -425,19 +438,21 @@ incr backup (add files and remove tablespace 2)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2b.txt (8B, 100%) checksum e324463005236d83e6e54795dbddd20a74533bf3
INFO: 13B total backup
INFO: total backup size: 13B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
incr backup (update files)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -459,19 +474,21 @@ incr backup (update files)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base
INFO: backup file [TEST_PATH]/db/common-2/base/base1.txt (8B, 100%) checksum 9a53d532e27785e681766c98516a5e93f096a501
INFO: 8B total backup
INFO: total backup size: 8B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (no updates)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -509,19 +526,21 @@ diff backup (no updates)
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2b.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2b.txt.gz, source_compressed = false, destination_compress = true, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2b.txt.gz, destination_path_create = true
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2b.txt (8B, 100%) checksum e324463005236d83e6e54795dbddd20a74533bf3
INFO: 39B total backup
INFO: total backup size: 39B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
incr backup (remove files - but won't affect manifest)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --stanza=db backup --test --test-delay=1
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -544,12 +563,14 @@ incr backup (remove files - but won't affect manifest)
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (remove files during backup)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup --test --test-delay=1
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -581,19 +602,21 @@ diff backup (remove files during backup)
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt.gz, source_compressed = false, destination_compress = true, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt.gz, destination_path_create = true
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt (12B, 100%) checksum dfcb8679956b734706cf87259d50c88f83e80e66
INFO: 31B total backup
INFO: total backup size: 31B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
full backup
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --type=full --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = full
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -630,19 +653,21 @@ full backup
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt.gz, source_compressed = false, destination_compress = true, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt.gz, destination_path_create = true
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt (12B, 100%) checksum dfcb8679956b734706cf87259d50c88f83e80e66
INFO: 42B total backup
INFO: total backup size: 42B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (add files)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -664,13 +689,14 @@ diff backup (add files)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base
INFO: backup file [TEST_PATH]/db/common-2/base/base2.txt (9B, 100%) checksum cafac3c59553f2cfde41ce2e62e7662295f108c0
INFO: 9B total backup
INFO: total backup size: 9B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads

View File

@ -4,6 +4,7 @@ run 004 - rmt 0, cmp 1, hardlink 1
full backup
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --manifest-save-threshold=3 --type=full --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = full
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -26,7 +27,7 @@ full backup
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base/base1.txt.gz, destination_path_create = true
INFO: backup file [TEST_PATH]/db/common/base/base1.txt (4B, 100%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
DEBUG: manifest saved
INFO: 7B total backup
INFO: total backup size: 7B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
@ -34,12 +35,14 @@ full backup
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
full backup (resume)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --type=full --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = full
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -64,13 +67,14 @@ full backup (resume)
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/base/base1.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/base/base/base1.txt.gz, source_compressed = false, destination_compress = true, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base/base1.txt.gz, destination_path_create = true
INFO: backup file [TEST_PATH]/db/common/base/base1.txt (4B, 100%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
INFO: 7B total backup
INFO: total backup size: 7B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
@ -116,6 +120,7 @@ restore delta, backup '[BACKUP_LABEL]' (add and delete files)
incr backup (add tablespace 1)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -152,19 +157,21 @@ incr backup (add tablespace 1)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/1, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/1
INFO: backup file [TEST_PATH]/db/tablespace/ts1/tablespace1.txt (7B, 100%) checksum d85de07d6421d90aa9191c11c889bfde43680f0f
INFO: 18B total backup
INFO: total backup size: 18B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
incr backup (resume and add tablespace 2)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -215,19 +222,21 @@ incr backup (resume and add tablespace 2)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2
INFO: backup file [TEST_PATH]/db/tablespace/ts2/tablespace2.txt (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
INFO: 25B total backup
INFO: total backup size: 25B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (cannot resume - new diff)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -274,19 +283,21 @@ diff backup (cannot resume - new diff)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2
INFO: backup file [TEST_PATH]/db/tablespace/ts2/tablespace2.txt (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
INFO: 25B total backup
INFO: total backup size: 25B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (cannot resume - disabled)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --no-resume --type=diff --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -333,13 +344,14 @@ diff backup (cannot resume - disabled)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2
INFO: backup file [TEST_PATH]/db/tablespace/ts2/tablespace2.txt (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
INFO: 25B total backup
INFO: total backup size: 25B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
@ -450,6 +462,7 @@ restore, backup '[BACKUP_LABEL]', remap (remap all paths)
incr backup (add files and remove tablespace 2)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -490,19 +503,21 @@ incr backup (add files and remove tablespace 2)
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2b.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2b.txt.gz, source_compressed = false, destination_compress = true, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2b.txt.gz, destination_path_create = true
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2b.txt (8B, 100%) checksum e324463005236d83e6e54795dbddd20a74533bf3
INFO: 13B total backup
INFO: total backup size: 13B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
incr backup (update files)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -543,19 +558,21 @@ incr backup (update files)
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common-2/base/base1.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/base/base/base1.txt.gz, source_compressed = false, destination_compress = true, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base/base1.txt.gz, destination_path_create = true
INFO: backup file [TEST_PATH]/db/common-2/base/base1.txt (8B, 100%) checksum 9a53d532e27785e681766c98516a5e93f096a501
INFO: 8B total backup
INFO: total backup size: 8B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (no updates)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -598,19 +615,21 @@ diff backup (no updates)
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2b.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2b.txt.gz, source_compressed = false, destination_compress = true, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2b.txt.gz, destination_path_create = true
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2b.txt (8B, 100%) checksum e324463005236d83e6e54795dbddd20a74533bf3
INFO: 39B total backup
INFO: total backup size: 39B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
incr backup (remove files - but won't affect manifest)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --stanza=db backup --test --test-delay=1
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -657,12 +676,14 @@ incr backup (remove files - but won't affect manifest)
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (remove files during backup)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup --test --test-delay=1
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -701,19 +722,21 @@ diff backup (remove files during backup)
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt.gz, source_compressed = false, destination_compress = true, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt.gz, destination_path_create = true
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt (12B, 100%) checksum dfcb8679956b734706cf87259d50c88f83e80e66
INFO: 31B total backup
INFO: total backup size: 31B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
full backup
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --type=full --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = full
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -750,19 +773,21 @@ full backup
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt.gz, source_compressed = false, destination_compress = true, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt.gz, destination_path_create = true
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt (12B, 100%) checksum dfcb8679956b734706cf87259d50c88f83e80e66
INFO: 42B total backup
INFO: total backup size: 42B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (add files)
> ../bin/pg_backrest.pl --config=[TEST_PATH]/db/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -803,13 +828,14 @@ diff backup (add files)
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common-2/base/base2.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/base/base/base2.txt.gz, source_compressed = false, destination_compress = true, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base/base2.txt.gz, destination_path_create = true
INFO: backup file [TEST_PATH]/db/common-2/base/base2.txt (9B, 100%) checksum cafac3c59553f2cfde41ce2e62e7662295f108c0
INFO: 9B total backup
INFO: total backup size: 9B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads

View File

@ -4,6 +4,7 @@ run 005 - rmt 1, cmp 0, hardlink 0
full backup
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --manifest-save-threshold=3 --type=full --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = full
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -26,7 +27,7 @@ full backup
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base/base1.txt, destination_path_create = true
INFO: backup file [TEST_PATH]/db/common/base/base1.txt (4B, 100%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
DEBUG: manifest saved
INFO: 7B total backup
INFO: total backup size: 7B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
@ -34,12 +35,14 @@ full backup
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
full backup (resume)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --type=full --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = full
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -62,13 +65,14 @@ full backup (resume)
INFO: backup file [TEST_PATH]/db/common/PG_VERSION (3B, 42%) checksum e1f7a3a299f62225cba076fc6d3d6e677f303482
DEBUG: File->hash: backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/base/base/base1.txt, compressed = false, hash_type = sha1
INFO: checksum resumed file [TEST_PATH]/db/common/base/base1.txt (4B, 100%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
INFO: 7B total backup
INFO: total backup size: 7B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
@ -114,6 +118,7 @@ restore delta, backup '[BACKUP_LABEL]' (add and delete files)
incr backup (add tablespace 1)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -140,19 +145,21 @@ incr backup (add tablespace 1)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/1, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/1
INFO: backup file [TEST_PATH]/db/tablespace/ts1/tablespace1.txt (7B, 100%) checksum d85de07d6421d90aa9191c11c889bfde43680f0f
INFO: 18B total backup
INFO: total backup size: 18B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
incr backup (resume and add tablespace 2)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -185,19 +192,21 @@ incr backup (resume and add tablespace 2)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2
INFO: backup file [TEST_PATH]/db/tablespace/ts2/tablespace2.txt (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
INFO: 25B total backup
INFO: total backup size: 25B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (cannot resume - new diff)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -232,19 +241,21 @@ diff backup (cannot resume - new diff)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2
INFO: backup file [TEST_PATH]/db/tablespace/ts2/tablespace2.txt (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
INFO: 25B total backup
INFO: total backup size: 25B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (cannot resume - disabled)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --no-resume --type=diff --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -279,13 +290,14 @@ diff backup (cannot resume - disabled)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2
INFO: backup file [TEST_PATH]/db/tablespace/ts2/tablespace2.txt (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
INFO: 25B total backup
INFO: total backup size: 25B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
@ -396,6 +408,7 @@ restore, backup '[BACKUP_LABEL]', remap (remap all paths)
incr backup (add files and remove tablespace 2)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -422,19 +435,21 @@ incr backup (add files and remove tablespace 2)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2b.txt (8B, 100%) checksum e324463005236d83e6e54795dbddd20a74533bf3
INFO: 13B total backup
INFO: total backup size: 13B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
incr backup (update files)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -456,19 +471,21 @@ incr backup (update files)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base
INFO: backup file [TEST_PATH]/db/common-2/base/base1.txt (8B, 100%) checksum 9a53d532e27785e681766c98516a5e93f096a501
INFO: 8B total backup
INFO: total backup size: 8B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (no updates)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -506,19 +523,21 @@ diff backup (no updates)
DEBUG: File->copy: remote db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2b.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2b.txt, source_compressed = false, destination_compress = false, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2b.txt, destination_path_create = true
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2b.txt (8B, 100%) checksum e324463005236d83e6e54795dbddd20a74533bf3
INFO: 39B total backup
INFO: total backup size: 39B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
incr backup (remove files - but won't affect manifest)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --stanza=db backup --test --test-delay=1
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -541,12 +560,14 @@ incr backup (remove files - but won't affect manifest)
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (remove files during backup)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup --test --test-delay=1
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -578,19 +599,21 @@ diff backup (remove files during backup)
DEBUG: File->copy: remote db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt, source_compressed = false, destination_compress = false, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt, destination_path_create = true
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt (12B, 100%) checksum dfcb8679956b734706cf87259d50c88f83e80e66
INFO: 31B total backup
INFO: total backup size: 31B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
full backup
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --type=full --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = full
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -627,19 +650,21 @@ full backup
DEBUG: File->copy: remote db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt, source_compressed = false, destination_compress = false, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt, destination_path_create = true
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt (12B, 100%) checksum dfcb8679956b734706cf87259d50c88f83e80e66
INFO: 42B total backup
INFO: total backup size: 42B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (add files)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -661,13 +686,14 @@ diff backup (add files)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base
INFO: backup file [TEST_PATH]/db/common-2/base/base2.txt (9B, 100%) checksum cafac3c59553f2cfde41ce2e62e7662295f108c0
INFO: 9B total backup
INFO: total backup size: 9B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads

View File

@ -4,6 +4,7 @@ run 006 - rmt 1, cmp 0, hardlink 1
full backup
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --manifest-save-threshold=3 --type=full --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = full
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -26,7 +27,7 @@ full backup
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base/base1.txt, destination_path_create = true
INFO: backup file [TEST_PATH]/db/common/base/base1.txt (4B, 100%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
DEBUG: manifest saved
INFO: 7B total backup
INFO: total backup size: 7B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
@ -34,12 +35,14 @@ full backup
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
full backup (resume)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --type=full --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = full
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -62,13 +65,14 @@ full backup (resume)
INFO: backup file [TEST_PATH]/db/common/PG_VERSION (3B, 42%) checksum e1f7a3a299f62225cba076fc6d3d6e677f303482
DEBUG: File->hash: backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/base/base/base1.txt, compressed = false, hash_type = sha1
INFO: checksum resumed file [TEST_PATH]/db/common/base/base1.txt (4B, 100%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
INFO: 7B total backup
INFO: total backup size: 7B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
@ -114,6 +118,7 @@ restore delta, backup '[BACKUP_LABEL]' (add and delete files)
incr backup (add tablespace 1)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -150,19 +155,21 @@ incr backup (add tablespace 1)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/1, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/1
INFO: backup file [TEST_PATH]/db/tablespace/ts1/tablespace1.txt (7B, 100%) checksum d85de07d6421d90aa9191c11c889bfde43680f0f
INFO: 18B total backup
INFO: total backup size: 18B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
incr backup (resume and add tablespace 2)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -212,19 +219,21 @@ incr backup (resume and add tablespace 2)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2
INFO: backup file [TEST_PATH]/db/tablespace/ts2/tablespace2.txt (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
INFO: 25B total backup
INFO: total backup size: 25B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (cannot resume - new diff)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -271,19 +280,21 @@ diff backup (cannot resume - new diff)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2
INFO: backup file [TEST_PATH]/db/tablespace/ts2/tablespace2.txt (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
INFO: 25B total backup
INFO: total backup size: 25B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (cannot resume - disabled)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --no-resume --type=diff --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -330,13 +341,14 @@ diff backup (cannot resume - disabled)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2
INFO: backup file [TEST_PATH]/db/tablespace/ts2/tablespace2.txt (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
INFO: 25B total backup
INFO: total backup size: 25B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
@ -447,6 +459,7 @@ restore, backup '[BACKUP_LABEL]', remap (remap all paths)
incr backup (add files and remove tablespace 2)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -487,19 +500,21 @@ incr backup (add files and remove tablespace 2)
DEBUG: File->copy: remote db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2b.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2b.txt, source_compressed = false, destination_compress = false, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2b.txt, destination_path_create = true
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2b.txt (8B, 100%) checksum e324463005236d83e6e54795dbddd20a74533bf3
INFO: 13B total backup
INFO: total backup size: 13B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
incr backup (update files)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -540,19 +555,21 @@ incr backup (update files)
DEBUG: File->copy: remote db:absolute:[TEST_PATH]/db/common-2/base/base1.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/base/base/base1.txt, source_compressed = false, destination_compress = false, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base/base1.txt, destination_path_create = true
INFO: backup file [TEST_PATH]/db/common-2/base/base1.txt (8B, 100%) checksum 9a53d532e27785e681766c98516a5e93f096a501
INFO: 8B total backup
INFO: total backup size: 8B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (no updates)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -595,19 +612,21 @@ diff backup (no updates)
DEBUG: File->copy: remote db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2b.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2b.txt, source_compressed = false, destination_compress = false, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2b.txt, destination_path_create = true
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2b.txt (8B, 100%) checksum e324463005236d83e6e54795dbddd20a74533bf3
INFO: 39B total backup
INFO: total backup size: 39B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
incr backup (remove files - but won't affect manifest)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --stanza=db backup --test --test-delay=1
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -654,12 +673,14 @@ incr backup (remove files - but won't affect manifest)
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (remove files during backup)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup --test --test-delay=1
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -698,19 +719,21 @@ diff backup (remove files during backup)
DEBUG: File->copy: remote db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt, source_compressed = false, destination_compress = false, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt, destination_path_create = true
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt (12B, 100%) checksum dfcb8679956b734706cf87259d50c88f83e80e66
INFO: 31B total backup
INFO: total backup size: 31B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
full backup
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --type=full --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = full
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -747,19 +770,21 @@ full backup
DEBUG: File->copy: remote db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt, source_compressed = false, destination_compress = false, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt, destination_path_create = true
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt (12B, 100%) checksum dfcb8679956b734706cf87259d50c88f83e80e66
INFO: 42B total backup
INFO: total backup size: 42B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (add files)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -800,13 +825,14 @@ diff backup (add files)
DEBUG: File->copy: remote db:absolute:[TEST_PATH]/db/common-2/base/base2.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/base/base/base2.txt, source_compressed = false, destination_compress = false, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base/base2.txt, destination_path_create = true
INFO: backup file [TEST_PATH]/db/common-2/base/base2.txt (9B, 100%) checksum cafac3c59553f2cfde41ce2e62e7662295f108c0
INFO: 9B total backup
INFO: total backup size: 9B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads

View File

@ -4,6 +4,7 @@ run 007 - rmt 1, cmp 1, hardlink 0
full backup
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --manifest-save-threshold=3 --type=full --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = full
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -26,7 +27,7 @@ full backup
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base/base1.txt.gz, destination_path_create = true
INFO: backup file [TEST_PATH]/db/common/base/base1.txt (4B, 100%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
DEBUG: manifest saved
INFO: 7B total backup
INFO: total backup size: 7B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
@ -34,12 +35,14 @@ full backup
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
full backup (resume)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --type=full --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = full
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -64,13 +67,14 @@ full backup (resume)
DEBUG: File->copy: remote db:absolute:[TEST_PATH]/db/common/base/base1.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/base/base/base1.txt.gz, source_compressed = false, destination_compress = true, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base/base1.txt.gz, destination_path_create = true
INFO: backup file [TEST_PATH]/db/common/base/base1.txt (4B, 100%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
INFO: 7B total backup
INFO: total backup size: 7B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
@ -116,6 +120,7 @@ restore delta, backup '[BACKUP_LABEL]' (add and delete files)
incr backup (add tablespace 1)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -142,19 +147,21 @@ incr backup (add tablespace 1)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/1, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/1
INFO: backup file [TEST_PATH]/db/tablespace/ts1/tablespace1.txt (7B, 100%) checksum d85de07d6421d90aa9191c11c889bfde43680f0f
INFO: 18B total backup
INFO: total backup size: 18B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
incr backup (resume and add tablespace 2)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -188,19 +195,21 @@ incr backup (resume and add tablespace 2)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2
INFO: backup file [TEST_PATH]/db/tablespace/ts2/tablespace2.txt (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
INFO: 25B total backup
INFO: total backup size: 25B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (cannot resume - new diff)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -235,19 +244,21 @@ diff backup (cannot resume - new diff)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2
INFO: backup file [TEST_PATH]/db/tablespace/ts2/tablespace2.txt (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
INFO: 25B total backup
INFO: total backup size: 25B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (cannot resume - disabled)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --no-resume --type=diff --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -282,13 +293,14 @@ diff backup (cannot resume - disabled)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2
INFO: backup file [TEST_PATH]/db/tablespace/ts2/tablespace2.txt (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
INFO: 25B total backup
INFO: total backup size: 25B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
@ -399,6 +411,7 @@ restore, backup '[BACKUP_LABEL]', remap (remap all paths)
incr backup (add files and remove tablespace 2)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -425,19 +438,21 @@ incr backup (add files and remove tablespace 2)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2b.txt (8B, 100%) checksum e324463005236d83e6e54795dbddd20a74533bf3
INFO: 13B total backup
INFO: total backup size: 13B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
incr backup (update files)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -459,19 +474,21 @@ incr backup (update files)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base
INFO: backup file [TEST_PATH]/db/common-2/base/base1.txt (8B, 100%) checksum 9a53d532e27785e681766c98516a5e93f096a501
INFO: 8B total backup
INFO: total backup size: 8B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (no updates)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -509,19 +526,21 @@ diff backup (no updates)
DEBUG: File->copy: remote db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2b.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2b.txt.gz, source_compressed = false, destination_compress = true, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2b.txt.gz, destination_path_create = true
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2b.txt (8B, 100%) checksum e324463005236d83e6e54795dbddd20a74533bf3
INFO: 39B total backup
INFO: total backup size: 39B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
incr backup (remove files - but won't affect manifest)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --stanza=db backup --test --test-delay=1
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -544,12 +563,14 @@ incr backup (remove files - but won't affect manifest)
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (remove files during backup)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup --test --test-delay=1
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -581,19 +602,21 @@ diff backup (remove files during backup)
DEBUG: File->copy: remote db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt.gz, source_compressed = false, destination_compress = true, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt.gz, destination_path_create = true
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt (12B, 100%) checksum dfcb8679956b734706cf87259d50c88f83e80e66
INFO: 31B total backup
INFO: total backup size: 31B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
full backup
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --type=full --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = full
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -630,19 +653,21 @@ full backup
DEBUG: File->copy: remote db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt.gz, source_compressed = false, destination_compress = true, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt.gz, destination_path_create = true
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt (12B, 100%) checksum dfcb8679956b734706cf87259d50c88f83e80e66
INFO: 42B total backup
INFO: total backup size: 42B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (add files)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -664,13 +689,14 @@ diff backup (add files)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base
INFO: backup file [TEST_PATH]/db/common-2/base/base2.txt (9B, 100%) checksum cafac3c59553f2cfde41ce2e62e7662295f108c0
INFO: 9B total backup
INFO: total backup size: 9B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads

View File

@ -4,6 +4,7 @@ run 008 - rmt 1, cmp 1, hardlink 1
full backup
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --manifest-save-threshold=3 --type=full --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = full
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -26,7 +27,7 @@ full backup
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base/base1.txt.gz, destination_path_create = true
INFO: backup file [TEST_PATH]/db/common/base/base1.txt (4B, 100%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
DEBUG: manifest saved
INFO: 7B total backup
INFO: total backup size: 7B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
@ -34,12 +35,14 @@ full backup
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
full backup (resume)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --type=full --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = full
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -64,13 +67,14 @@ full backup (resume)
DEBUG: File->copy: remote db:absolute:[TEST_PATH]/db/common/base/base1.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/base/base/base1.txt.gz, source_compressed = false, destination_compress = true, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base/base1.txt.gz, destination_path_create = true
INFO: backup file [TEST_PATH]/db/common/base/base1.txt (4B, 100%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
INFO: 7B total backup
INFO: total backup size: 7B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
@ -116,6 +120,7 @@ restore delta, backup '[BACKUP_LABEL]' (add and delete files)
incr backup (add tablespace 1)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -152,19 +157,21 @@ incr backup (add tablespace 1)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/1, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/1
INFO: backup file [TEST_PATH]/db/tablespace/ts1/tablespace1.txt (7B, 100%) checksum d85de07d6421d90aa9191c11c889bfde43680f0f
INFO: 18B total backup
INFO: total backup size: 18B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
incr backup (resume and add tablespace 2)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -215,19 +222,21 @@ incr backup (resume and add tablespace 2)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2
INFO: backup file [TEST_PATH]/db/tablespace/ts2/tablespace2.txt (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
INFO: 25B total backup
INFO: total backup size: 25B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (cannot resume - new diff)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -274,19 +283,21 @@ diff backup (cannot resume - new diff)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2
INFO: backup file [TEST_PATH]/db/tablespace/ts2/tablespace2.txt (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
INFO: 25B total backup
INFO: total backup size: 25B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (cannot resume - disabled)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --no-resume --type=diff --stanza=db backup --test --test-delay=0
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -333,13 +344,14 @@ diff backup (cannot resume - disabled)
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2, mode [undef]
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2
INFO: backup file [TEST_PATH]/db/tablespace/ts2/tablespace2.txt (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
INFO: 25B total backup
INFO: total backup size: 25B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
@ -450,6 +462,7 @@ restore, backup '[BACKUP_LABEL]', remap (remap all paths)
incr backup (add files and remove tablespace 2)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -490,19 +503,21 @@ incr backup (add files and remove tablespace 2)
DEBUG: File->copy: remote db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2b.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2b.txt.gz, source_compressed = false, destination_compress = true, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2b.txt.gz, destination_path_create = true
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2b.txt (8B, 100%) checksum e324463005236d83e6e54795dbddd20a74533bf3
INFO: 13B total backup
INFO: total backup size: 13B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
incr backup (update files)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -543,19 +558,21 @@ incr backup (update files)
DEBUG: File->copy: remote db:absolute:[TEST_PATH]/db/common-2/base/base1.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/base/base/base1.txt.gz, source_compressed = false, destination_compress = true, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base/base1.txt.gz, destination_path_create = true
INFO: backup file [TEST_PATH]/db/common-2/base/base1.txt (8B, 100%) checksum 9a53d532e27785e681766c98516a5e93f096a501
INFO: 8B total backup
INFO: total backup size: 8B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (no updates)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -598,19 +615,21 @@ diff backup (no updates)
DEBUG: File->copy: remote db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2b.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2b.txt.gz, source_compressed = false, destination_compress = true, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2b.txt.gz, destination_path_create = true
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2b.txt (8B, 100%) checksum e324463005236d83e6e54795dbddd20a74533bf3
INFO: 39B total backup
INFO: total backup size: 39B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
incr backup (remove files - but won't affect manifest)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --stanza=db backup --test --test-delay=1
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = incr
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -657,12 +676,14 @@ incr backup (remove files - but won't affect manifest)
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (remove files during backup)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup --test --test-delay=1
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -701,19 +722,21 @@ diff backup (remove files during backup)
DEBUG: File->copy: remote db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt.gz, source_compressed = false, destination_compress = true, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt.gz, destination_path_create = true
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt (12B, 100%) checksum dfcb8679956b734706cf87259d50c88f83e80e66
INFO: 31B total backup
INFO: total backup size: 31B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
full backup
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --type=full --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = full
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -750,19 +773,21 @@ full backup
DEBUG: File->copy: remote db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt.gz, source_compressed = false, destination_compress = true, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/tablespace/2/tablespace2c.txt.gz, destination_path_create = true
INFO: backup file [TEST_PATH]/db/tablespace/ts2-2/tablespace2c.txt (12B, 100%) checksum dfcb8679956b734706cf87259d50c88f83e80e66
INFO: 42B total backup
INFO: total backup size: 42B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads
diff backup (add files)
> [BACKREST_BIN_PATH]/pg_backrest.pl --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --type=diff --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: type = diff
DEBUG: cluster path is [TEST_PATH]/db/common-2
DEBUG: File->path_create: backup:cluster:[TEST_PATH]/backrest/backup/db, mode [undef]
DEBUG: File->exists: backup:cluster:[TEST_PATH]/backrest/backup/db
@ -803,13 +828,14 @@ diff backup (add files)
DEBUG: File->copy: remote db:absolute:[TEST_PATH]/db/common-2/base/base2.txt to local backup:tmp:[TEST_PATH]/backrest/temp/db.tmp/base/base/base2.txt.gz, source_compressed = false, destination_compress = true, ignore_missing_source = true, destination_path_create = true, modification_time = [MODIFICATION_TIME], mode = [undef], user = [undef], group = [undef]
DEBUG: File->move: absolute:[TEST_PATH]/backrest/temp/db.tmp/file.tmp to absolute:[TEST_PATH]/backrest/temp/db.tmp/base/base/base2.txt.gz, destination_path_create = true
INFO: backup file [TEST_PATH]/db/common-2/base/base2.txt (9B, 100%) checksum cafac3c59553f2cfde41ce2e62e7662295f108c0
INFO: 9B total backup
INFO: total backup size: 9B
INFO: new backup label: [BACKUP_LABEL]
DEBUG: moving [TEST_PATH]/backrest/temp/db.tmp to [TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]
DEBUG: File->move: backup:tmp to backup:cluster:[BACKUP_LABEL], destination_path_create = false
DEBUG: File->remove: backup:cluster:[TEST_PATH]/backrest/backup/db/latest
DEBUG: File->link_create: backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL] to backup:cluster:[TEST_PATH]/backrest/backup/db/latest, hard = false, relative = true, destination_path_create = true
DEBUG: File->path_create: backup:absolute:[TEST_PATH]/backrest/backup/db, mode [undef]
INFO: backup stop
INFO: archive rentention type not set - archive logs will not be expired
DEBUG: safe exit called, terminating threads