pgbackrest.git / summary / log / commit / refs
commit 1ac4b781fd304fcc6aa663afc324cdb2d1fdcb06
Author: David Steele <david@pgmasters.net>
Date: Thu May 07 21:56:56 2015 +0000
Better info logging for restore. Most of the messages were debug before and some important ones were missing.
README.md | 2 +
doc/doc.xml | 3 +
lib/BackRest/Restore.pm | 126 +++++++++++++++++++++++++-------------
lib/BackRest/RestoreFile.pm | 97 ++++++++++++++---------------
lib/BackRest/ThreadGroup.pm | 12 ++--
test/log/backup-synthetic-001.log | 30 +++++----
test/log/backup-synthetic-002.log | 30 +++++----
test/log/backup-synthetic-003.log | 30 +++++----
test/log/backup-synthetic-004.log | 30 +++++----
test/log/backup-synthetic-005.log | 30 +++++----
test/log/backup-synthetic-006.log | 30 +++++----
test/log/backup-synthetic-007.log | 30 +++++----
test/log/backup-synthetic-008.log | 30 +++++----
13 files changed, 292 insertions(+), 188 deletions(-)
diff --git a/README.md b/README.md
index b181be7ff..dfde90137 100644
--- a/README.md
+++ b/README.md
@@ -722,6 +722,8 @@ example: db-path=/data/db
* Resume is now optional. Use the `resume` setting or `--no-resume` from the command line to disable.
+* More info messages during restore. Previously, most of the restore messages were debug level so not a lot was output in the log.
+
### v0.61: bug fix for uncompressed remote destination
* Fixed a buffering error that could occur on large, highly-compressible files when copying to an uncompressed remote destination. The error was detected in the decompression code and resulted in a failed backup rather than corruption so it should not affect successful backups made with previous versions.
diff --git a/doc/doc.xml b/doc/doc.xml
index c3c086f2d..aeda17865 100644
--- a/doc/doc.xml
+++ b/doc/doc.xml
@@ -677,6 +677,9 @@ Run a <id>full</id> backup on the <id>db</id> stanza. <param>--type</param> can
<release-feature>
<text>Resume is now optional. Use the <setting>resume</setting> setting or <param>--no-resume</param> from the command line to disable.</text>
</release-feature>
+ <release-feature>
+ <text>More info messages during restore. Previously, most of the restore messages were debug level so not a lot was output in the log.</text>
+ </release-feature>
</release-feature-bullet-list>
</release-version>
diff --git a/lib/BackRest/Restore.pm b/lib/BackRest/Restore.pm
index 925f1b97d..59aa2810c 100644
--- a/lib/BackRest/Restore.pm
+++ b/lib/BackRest/Restore.pm
@@ -315,7 +315,7 @@ sub clean
if ($strUser ne $oPathManifest{name}{$strName}{user} ||
$strGroup ne $oPathManifest{name}{$strName}{group})
{
- &log(DEBUG, "setting ${strFile} ownership to ${strUser}:${strGroup}");
+ &log(INFO, "setting ${strFile} ownership to ${strUser}:${strGroup}");
$self->{oFile}->owner(PATH_DB_ABSOLUTE, $strFile, $strUser, $strGroup);
}
@@ -326,7 +326,7 @@ sub clean
if ($strType eq MANIFEST_LINK && $oManifest->get($strSection, $strName, MANIFEST_SUBKEY_DESTINATION) ne
$oPathManifest{name}{$strName}{link_destination})
{
- &log(DEBUG, "removing link ${strFile} - destination changed");
+ &log(INFO, "removing link ${strFile} - destination changed");
unlink($strFile) or confess &log(ERROR, "unable to delete file ${strFile}");
}
}
@@ -337,7 +337,7 @@ sub clean
if ($strType ne MANIFEST_LINK && $strMode ne $oPathManifest{name}{$strName}{mode})
{
- &log(DEBUG, "setting ${strFile} mode to ${strMode}");
+ &log(INFO, "setting ${strFile} mode to ${strMode}");
chmod(oct($strMode), $strFile)
or confess 'unable to set mode ${strMode} for ${strFile}';
@@ -350,17 +350,17 @@ sub clean
# If a path then remove it, all the files should have already been deleted since we are going in reverse order
if ($strType eq MANIFEST_PATH)
{
- &log(DEBUG, "removing path ${strFile}");
+ &log(INFO, "removing path ${strFile}");
rmdir($strFile) or confess &log(ERROR, "unable to delete path ${strFile}, is it empty?");
}
# Else delete a file/link
else
{
- # Delete only if this is not the recovery.conf file. This is in case the use wants the recovery.conf file
+ # Delete only if this is not the recovery.conf file. This is in case the user wants the recovery.conf file
# preserved. It will be written/deleted/preserved as needed in recovery().
if (!($strName eq FILE_RECOVERY_CONF && $strType eq MANIFEST_FILE))
{
- &log(DEBUG, "removing file/link ${strFile}");
+ &log(INFO, "removing file/link ${strFile}");
unlink($strFile) or confess &log(ERROR, "unable to delete file/link ${strFile}");
}
}
@@ -571,17 +571,10 @@ sub restore
my $strCurrentUser = getpwuid($<);
my $strCurrentGroup = getgrgid($();
- # Create thread queues (or do restore if single-threaded)
- my @oyRestoreQueue;
-
- if ($self->{iThreadTotal} > 1)
- {
- &log(TRACE, "building thread queues");
- }
- else
- {
- &log(TRACE, "starting restore in main process");
- }
+ # Create hash containing files to restore
+ my %oRestoreHash;
+ my $lSizeTotal = 0;
+ my $lSizeCurrent = 0;
foreach my $strPathKey ($oManifest->keys(MANIFEST_SECTION_BACKUP_PATH))
{
@@ -589,21 +582,38 @@ sub restore
if ($oManifest->test($strSection))
{
- if ($self->{iThreadTotal} > 1)
+ foreach my $strFile ($oManifest->keys($strSection))
{
- $oyRestoreQueue[@oyRestoreQueue] = Thread::Queue->new();
- }
-
- foreach my $strName ($oManifest->keys($strSection))
- {
- if ($self->{iThreadTotal} > 1)
- {
- $oyRestoreQueue[@oyRestoreQueue - 1]->enqueue("${strPathKey}|${strName}");
- }
- else
+ my $lSize = $oManifest->get($strSection, $strFile, MANIFEST_SUBKEY_SIZE);
+ $lSizeTotal += $lSize;
+
+ # Preface the file key with the size. This allows for sorting the files to restore by size
+ my $strFileKey = sprintf("%016d-${strFile}", $lSize);
+
+ # Get restore information
+ $oRestoreHash{$strPathKey}{$strFileKey}{file} = $strFile;
+ $oRestoreHash{$strPathKey}{$strFileKey}{size} = $lSize;
+ $oRestoreHash{$strPathKey}{$strFileKey}{source_path} = $strPathKey;
+ $oRestoreHash{$strPathKey}{$strFileKey}{source_path} =~ s/\:/\//g;
+ $oRestoreHash{$strPathKey}{$strFileKey}{destination_path} =
+ $oManifest->get(MANIFEST_SECTION_BACKUP_PATH, $strPathKey);
+ $oRestoreHash{$strPathKey}{$strFileKey}{reference} =
+ $oManifest->test(MANIFEST_SECTION_BACKUP_OPTION, MANIFEST_KEY_HARDLINK, undef, 'y') ? undef :
+ $oManifest->get($strSection, $strFile, MANIFEST_SUBKEY_REFERENCE, false);
+ $oRestoreHash{$strPathKey}{$strFileKey}{modification_time} =
+ $oManifest->get($strSection, $strFile, MANIFEST_SUBKEY_MODIFICATION_TIME);
+ $oRestoreHash{$strPathKey}{$strFileKey}{mode} =
+ $oManifest->get($strSection, $strFile, MANIFEST_SUBKEY_MODE);
+ $oRestoreHash{$strPathKey}{$strFileKey}{user} =
+ $oManifest->get($strSection, $strFile, MANIFEST_SUBKEY_USER);
+ $oRestoreHash{$strPathKey}{$strFileKey}{group} =
+ $oManifest->get($strSection, $strFile, MANIFEST_SUBKEY_GROUP);
+
+ # Checksum is only stored if size > 0
+ if ($lSize > 0)
{
- restoreFile($strPathKey, $strName, $lCopyTimeBegin, $self->{bDelta}, $self->{bForce}, $self->{strBackupPath},
- $bSourceCompression, $strCurrentUser, $strCurrentGroup, $oManifest, $self->{oFile});
+ $oRestoreHash{$strPathKey}{$strFileKey}{checksum} =
+ $oManifest->get($strSection, $strFile, MANIFEST_SUBKEY_CHECKSUM);
}
}
}
@@ -612,26 +622,58 @@ sub restore
# If multi-threaded then create threads to copy files
if ($self->{iThreadTotal} > 1)
{
- for (my $iThreadIdx = 0; $iThreadIdx < $self->{iThreadTotal}; $iThreadIdx++)
+ &log(DEBUG, "starting restore with $self->{iThreadTotal} threads");
+
+ # Initialize the thread queues
+ my @oyRestoreQueue;
+
+ foreach my $strPathKey (sort (keys %oRestoreHash))
{
- my %oParam;
-
- $oParam{copy_time_begin} = $lCopyTimeBegin;
- $oParam{delta} = $self->{bDelta};
- $oParam{force} = $self->{bForce};
- $oParam{backup_path} = $self->{strBackupPath};
- $oParam{source_compression} = $bSourceCompression;
- $oParam{current_user} = $strCurrentUser;
- $oParam{current_group} = $strCurrentGroup;
- $oParam{queue} = \@oyRestoreQueue;
- $oParam{manifest} = $oManifest;
+ push(@oyRestoreQueue, Thread::Queue->new());
+ foreach my $strFileKey (sort {$b cmp $a} (keys $oRestoreHash{$strPathKey}))
+ {
+ $oyRestoreQueue[@oyRestoreQueue - 1]->enqueue($oRestoreHash{$strPathKey}{$strFileKey});
+ }
+ }
+
+ # Initialize the param hash
+ my %oParam;
+
+ $oParam{copy_time_begin} = $lCopyTimeBegin;
+ $oParam{size_total} = $lSizeTotal;
+ $oParam{delta} = $self->{bDelta};
+ $oParam{force} = $self->{bForce};
+ $oParam{backup_path} = $self->{strBackupPath};
+ $oParam{source_compression} = $bSourceCompression;
+ $oParam{current_user} = $strCurrentUser;
+ $oParam{current_group} = $strCurrentGroup;
+ $oParam{queue} = \@oyRestoreQueue;
+
+ # Run the threads
+ for (my $iThreadIdx = 0; $iThreadIdx < $self->{iThreadTotal}; $iThreadIdx++)
+ {
threadGroupRun($iThreadIdx, 'restore', \%oParam);
}
# Complete thread queues
while (!threadGroupComplete()) {};
}
+ else
+ {
+ &log(DEBUG, "starting restore in main process");
+
+ # Restore file in main process
+ foreach my $strPathKey (sort (keys %oRestoreHash))
+ {
+ foreach my $strFileKey (sort {$b cmp $a} (keys $oRestoreHash{$strPathKey}))
+ {
+ $lSizeCurrent = restoreFile($oRestoreHash{$strPathKey}{$strFileKey}, $lCopyTimeBegin, $self->{bDelta},
+ $self->{bForce}, $self->{strBackupPath}, $bSourceCompression, $strCurrentUser,
+ $strCurrentGroup, $self->{oFile}, $lSizeTotal, $lSizeCurrent);
+ }
+ }
+ }
# Create recovery.conf file
$self->recovery();
diff --git a/lib/BackRest/RestoreFile.pm b/lib/BackRest/RestoreFile.pm
index ea9f1ea63..c8a47df4a 100644
--- a/lib/BackRest/RestoreFile.pm
+++ b/lib/BackRest/RestoreFile.pm
@@ -28,8 +28,7 @@ use BackRest::File;
####################################################################################################################################
sub restoreFile
{
- my $strSourcePath = shift; # Source path of the file
- my $strFileName = shift; # File to restore
+ my $oFileHash = shift; # File to restore
my $lCopyTimeBegin = shift; # Time that the backup begain - used for size/timestamp deltas
my $bDelta = shift; # Is restore a delta?
my $bForce = shift; # Force flag
@@ -37,20 +36,17 @@ sub restoreFile
my $bSourceCompression = shift; # Is the source compressed?
my $strCurrentUser = shift; # Current OS user
my $strCurrentGroup = shift; # Current OS group
- my $oManifest = shift; # Backup manifest
- my $oFile = shift; # File object (only provided in single-threaded mode)
-
- my $strSection = "${strSourcePath}:file"; # Backup section with file info
- my $strDestinationPath = $oManifest->get(MANIFEST_SECTION_BACKUP_PATH, # Destination path stored in manifest
- $strSourcePath);
- $strSourcePath =~ s/\:/\//g; # Replace : with / in source path
-
- # If the file is a reference to a previous backup and hardlinks are off, then fetch it from that backup
- my $strReference = $oManifest->test(MANIFEST_SECTION_BACKUP_OPTION, MANIFEST_KEY_HARDLINK, undef, 'y') ? undef :
- $oManifest->get($strSection, $strFileName, MANIFEST_SUBKEY_REFERENCE, false);
+ my $oFile = shift; # File object
+ my $lSizeTotal = shift; # Total size of files to be restored
+ my $lSizeCurrent = shift; # Current size of files restored
# Generate destination file name
- my $strDestinationFile = $oFile->path_get(PATH_DB_ABSOLUTE, "${strDestinationPath}/${strFileName}");
+ my $strDestinationFile = $oFile->path_get(PATH_DB_ABSOLUTE, "$$oFileHash{destination_path}/$$oFileHash{file}");
+
+ # Copy flag and log message
+ my $bCopy = true;
+ my $strLog;
+ $lSizeCurrent += $$oFileHash{size};
if ($oFile->exists(PATH_DB_ABSOLUTE, $strDestinationFile))
{
@@ -63,62 +59,63 @@ sub restoreFile
my $oStat = lstat($strDestinationFile);
# Make sure that timestamp/size are equal and that timestamp is before the copy start time of the backup
- if (defined($oStat) &&
- $oStat->size == $oManifest->get($strSection, $strFileName, MANIFEST_SUBKEY_SIZE) &&
- $oStat->mtime == $oManifest->get($strSection, $strFileName, MANIFEST_SUBKEY_MODIFICATION_TIME) &&
- $oStat->mtime < $lCopyTimeBegin)
+ if (defined($oStat) && $oStat->size == $$oFileHash{size} &&
+ $oStat->mtime == $$oFileHash{modification_time} && $oStat->mtime < $lCopyTimeBegin)
{
- &log(DEBUG, "${strDestinationFile} exists and matches size " . $oStat->size .
- " and modification time " . $oStat->mtime);
- return;
+ $strLog = "${strDestinationFile} exists and matches size " . $oStat->size .
+ " and modification time " . $oStat->mtime;
+ $bCopy = false;
}
}
else
{
my ($strChecksum, $lSize) = $oFile->hash_size(PATH_DB_ABSOLUTE, $strDestinationFile);
- my $strManifestChecksum = $oManifest->get($strSection, $strFileName, MANIFEST_SUBKEY_CHECKSUM, false, 'INVALID');
- if (($lSize == $oManifest->get($strSection, $strFileName, MANIFEST_SUBKEY_SIZE) && $lSize == 0) ||
- ($strChecksum eq $strManifestChecksum))
+ if ($lSize == $$oFileHash{size} && ($lSize == 0 || $strChecksum eq $$oFileHash{checksum}))
{
- &log(DEBUG, "${strDestinationFile} exists and is zero size or matches backup checksum");
+ $strLog = "exists and " . ($lSize == 0 ? 'is zero size' : "matches backup");
# Even if hash is the same set the time back to backup time. This helps with unit testing, but also
- # presents a pristine version of the database.
- utime($oManifest->get($strSection, $strFileName, MANIFEST_SUBKEY_MODIFICATION_TIME),
- $oManifest->get($strSection, $strFileName, MANIFEST_SUBKEY_MODIFICATION_TIME),
- $strDestinationFile)
+ # presents a pristine version of the database after restore.
+ utime($$oFileHash{modification_time}, $$oFileHash{modification_time}, $strDestinationFile)
or confess &log(ERROR, "unable to set time for ${strDestinationFile}");
- return;
+ $bCopy = false;
}
}
}
-
- $oFile->remove(PATH_DB_ABSOLUTE, $strDestinationFile);
}
- # Set user and group if running as root (otherwise current user and group will be used for restore)
# Copy the file from the backup to the database
- my ($bCopyResult, $strCopyChecksum, $lCopySize) =
- $oFile->copy(PATH_BACKUP_CLUSTER, (defined($strReference) ? $strReference : $strBackupPath) .
- "/${strSourcePath}/${strFileName}" .
- ($bSourceCompression ? '.' . $oFile->{strCompressExtension} : ''),
- PATH_DB_ABSOLUTE, $strDestinationFile,
- $bSourceCompression, # Source is compressed based on backup settings
- undef, undef,
- $oManifest->get($strSection, $strFileName, MANIFEST_SUBKEY_MODIFICATION_TIME),
- $oManifest->get($strSection, $strFileName, MANIFEST_SUBKEY_MODE),
- undef,
- $oManifest->get($strSection, $strFileName, MANIFEST_SUBKEY_USER),
- $oManifest->get($strSection, $strFileName, MANIFEST_SUBKEY_GROUP));
-
- if ($lCopySize != 0 && $strCopyChecksum ne $oManifest->get($strSection, $strFileName, MANIFEST_SUBKEY_CHECKSUM))
+ if ($bCopy)
{
- confess &log(ERROR, "error restoring ${strDestinationFile}: actual checksum ${strCopyChecksum} " .
- "does not match expected checksum " .
- $oManifest->get($strSection, $strFileName, MANIFEST_SUBKEY_CHECKSUM), ERROR_CHECKSUM);
+ my ($bCopyResult, $strCopyChecksum, $lCopySize) =
+ $oFile->copy(PATH_BACKUP_CLUSTER, (defined($$oFileHash{reference}) ? $$oFileHash{reference} : $strBackupPath) .
+ "/$$oFileHash{source_path}/$$oFileHash{file}" .
+ ($bSourceCompression ? '.' . $oFile->{strCompressExtension} : ''),
+ PATH_DB_ABSOLUTE, $strDestinationFile,
+ $bSourceCompression, # Source is compressed based on backup settings
+ undef, undef,
+ $$oFileHash{modification_time},
+ $$oFileHash{mode},
+ undef,
+ $$oFileHash{user},
+ $$oFileHash{group});
+
+ if ($lCopySize != 0 && $strCopyChecksum ne $$oFileHash{checksum})
+ {
+ confess &log(ERROR, "error restoring ${strDestinationFile}: actual checksum ${strCopyChecksum} " .
+ "does not match expected checksum $$oFileHash{checksum}", ERROR_CHECKSUM);
+ }
+
+ $strLog = "restore";
}
+
+ &log(INFO, "${strDestinationFile} ${strLog} (" . file_size_format($$oFileHash{size}) .
+ ($lSizeTotal > 0 ? ', ' . int($lSizeCurrent * 100 / $lSizeTotal) . '%' : '') . ')' .
+ ($$oFileHash{size} != 0 ? " checksum $$oFileHash{checksum}" : ''));
+
+ return $lSizeCurrent;
}
our @EXPORT = qw(restoreFile);
diff --git a/lib/BackRest/ThreadGroup.pm b/lib/BackRest/ThreadGroup.pm
index 6baca0850..e18a5dbba 100644
--- a/lib/BackRest/ThreadGroup.pm
+++ b/lib/BackRest/ThreadGroup.pm
@@ -110,13 +110,9 @@ sub threadGroupThread
{
if ($$oCommand{function} eq 'restore')
{
- my $strSourcePath = (split(/\|/, $oMessage))[0];
- my $strFileName = (split(/\|/, $oMessage))[1];
-
- restoreFile($strSourcePath, $strFileName, $$oCommand{param}{copy_time_begin}, $$oCommand{param}{delta},
- $$oCommand{param}{force}, $$oCommand{param}{backup_path}, $$oCommand{param}{source_compression},
- $$oCommand{param}{current_user}, $$oCommand{param}{current_group}, $$oCommand{param}{manifest},
- $oFile);
+ restoreFile($oMessage, $$oCommand{param}{copy_time_begin}, $$oCommand{param}{delta}, $$oCommand{param}{force},
+ $$oCommand{param}{backup_path}, $$oCommand{param}{source_compression},
+ $$oCommand{param}{current_user}, $$oCommand{param}{current_group}, $oFile, 0, 0);
}
elsif ($$oCommand{function} eq 'backup')
{
@@ -127,7 +123,7 @@ sub threadGroupThread
($$oResult{copied}, $lSizeCurrent, $$oResult{size}, $$oResult{checksum}) =
backupFile($oFile, $$oMessage{db_file}, $$oMessage{backup_file}, $$oCommand{param}{compress},
$$oMessage{checksum}, $$oMessage{modification_time},
- $$oMessage{size}, $$oCommand{param}{size_total}, $lSizeCurrent);
+ $$oMessage{size}, 0, 0);
# Send a message to update the manifest
$$oResult{file_section} = $$oMessage{file_section};
diff --git a/test/log/backup-synthetic-001.log b/test/log/backup-synthetic-001.log
index 9a169b825..a6a09f5e0 100644
--- a/test/log/backup-synthetic-001.log
+++ b/test/log/backup-synthetic-001.log
@@ -84,10 +84,10 @@ restore delta, backup '[BACKUP_LABEL]' (add and delete files)
INFO: checking/cleaning db path [TEST_PATH]/db/common
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common
DEBUG: File->manifest: db:absolute:[TEST_PATH]/db/common
- DEBUG: removing link [TEST_PATH]/db/common/link-test - destination changed
- DEBUG: removing file/link [TEST_PATH]/db/common/deleteme/deleteme.txt
- DEBUG: removing path [TEST_PATH]/db/common/deleteme
- DEBUG: setting [TEST_PATH]/db/common/base mode to 0700
+ INFO: removing link [TEST_PATH]/db/common/link-test - destination changed
+ INFO: removing file/link [TEST_PATH]/db/common/deleteme/deleteme.txt
+ INFO: removing path [TEST_PATH]/db/common/deleteme
+ INFO: setting [TEST_PATH]/db/common/base mode to 0700
INFO: 1 file(s) removed during cleanup
INFO: 1 path(s) removed during cleanup
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/base
@@ -96,13 +96,15 @@ restore delta, backup '[BACKUP_LABEL]' (add and delete files)
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/pg_tblspc
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/link-test
DEBUG: File->link_create: db:absolute:/test to db:absolute:[TEST_PATH]/db/common/link-test, hard = false, relative = false, destination_path_create = true
+ DEBUG: starting restore in main process
+ DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/base/base1.txt
+ DEBUG: File->hash: db:absolute:[TEST_PATH]/db/common/base/base1.txt, compressed = false, hash_type = sha1
+ INFO: [TEST_PATH]/db/common/base/base1.txt exists and matches backup (4B, 57%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/PG_VERSION
DEBUG: File->copy: local backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/PG_VERSION to local db:absolute:[TEST_PATH]/db/common/PG_VERSION, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/common/PG_VERSION.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/common/PG_VERSION.backrest.tmp to absolute:[TEST_PATH]/db/common/PG_VERSION, destination_path_create = false
- DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/base/base1.txt
- DEBUG: File->hash: db:absolute:[TEST_PATH]/db/common/base/base1.txt, compressed = false, hash_type = sha1
- DEBUG: [TEST_PATH]/db/common/base/base1.txt exists and is zero size or matches backup checksum
+ INFO: [TEST_PATH]/db/common/PG_VERSION restore (3B, 100%) checksum e1f7a3a299f62225cba076fc6d3d6e677f303482
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/recovery.conf
DEBUG: safe exit called, terminating threads
@@ -354,26 +356,32 @@ restore, backup '[BACKUP_LABEL]', remap (remap all paths)
DEBUG: File->link_create: db:absolute:[TEST_PATH]/db/tablespace/ts1-2 to db:absolute:[TEST_PATH]/db/common-2/pg_tblspc/1, hard = false, relative = false, destination_path_create = true
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/pg_tblspc/2
DEBUG: File->link_create: db:absolute:[TEST_PATH]/db/tablespace/ts2-2 to db:absolute:[TEST_PATH]/db/common-2/pg_tblspc/2, hard = false, relative = false, destination_path_create = true
- DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/PG_VERSION
- DEBUG: File->copy: local backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/PG_VERSION to local db:absolute:[TEST_PATH]/db/common-2/PG_VERSION, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
- DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp, user = [USER] = staff
- DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp to absolute:[TEST_PATH]/db/common-2/PG_VERSION, destination_path_create = false
+ DEBUG: starting restore in main process
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/badchecksum.txt
DEBUG: File->copy: local backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/badchecksum.txt to local db:absolute:[TEST_PATH]/db/common-2/badchecksum.txt, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/badchecksum.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/badchecksum.txt.backrest.tmp to absolute:[TEST_PATH]/db/common-2/badchecksum.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/common-2/badchecksum.txt restore (11B, 34%) checksum f927212cd08d11a42a666b2f04235398e9ceeb51
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/base/base1.txt
DEBUG: File->copy: local backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/base/base1.txt to local db:absolute:[TEST_PATH]/db/common-2/base/base1.txt, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/base/base1.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/base/base1.txt.backrest.tmp to absolute:[TEST_PATH]/db/common-2/base/base1.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/common-2/base/base1.txt restore (4B, 46%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
+ DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/PG_VERSION
+ DEBUG: File->copy: local backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/PG_VERSION to local db:absolute:[TEST_PATH]/db/common-2/PG_VERSION, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
+ DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp, user = [USER] = staff
+ DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp to absolute:[TEST_PATH]/db/common-2/PG_VERSION, destination_path_create = false
+ INFO: [TEST_PATH]/db/common-2/PG_VERSION restore (3B, 56%) checksum e1f7a3a299f62225cba076fc6d3d6e677f303482
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt
DEBUG: File->copy: local backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/tablespace/1/tablespace1.txt to local db:absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt.backrest.tmp to absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt restore (7B, 78%) checksum d85de07d6421d90aa9191c11c889bfde43680f0f
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt
DEBUG: File->copy: local backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/tablespace/2/tablespace2.txt to local db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt.backrest.tmp to absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt restore (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/recovery.conf
DEBUG: safe exit called, terminating threads
diff --git a/test/log/backup-synthetic-002.log b/test/log/backup-synthetic-002.log
index ec7d37348..9072db36b 100644
--- a/test/log/backup-synthetic-002.log
+++ b/test/log/backup-synthetic-002.log
@@ -84,10 +84,10 @@ restore delta, backup '[BACKUP_LABEL]' (add and delete files)
INFO: checking/cleaning db path [TEST_PATH]/db/common
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common
DEBUG: File->manifest: db:absolute:[TEST_PATH]/db/common
- DEBUG: removing link [TEST_PATH]/db/common/link-test - destination changed
- DEBUG: removing file/link [TEST_PATH]/db/common/deleteme/deleteme.txt
- DEBUG: removing path [TEST_PATH]/db/common/deleteme
- DEBUG: setting [TEST_PATH]/db/common/base mode to 0700
+ INFO: removing link [TEST_PATH]/db/common/link-test - destination changed
+ INFO: removing file/link [TEST_PATH]/db/common/deleteme/deleteme.txt
+ INFO: removing path [TEST_PATH]/db/common/deleteme
+ INFO: setting [TEST_PATH]/db/common/base mode to 0700
INFO: 1 file(s) removed during cleanup
INFO: 1 path(s) removed during cleanup
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/base
@@ -96,13 +96,15 @@ restore delta, backup '[BACKUP_LABEL]' (add and delete files)
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/pg_tblspc
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/link-test
DEBUG: File->link_create: db:absolute:/test to db:absolute:[TEST_PATH]/db/common/link-test, hard = false, relative = false, destination_path_create = true
+ DEBUG: starting restore in main process
+ DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/base/base1.txt
+ DEBUG: File->hash: db:absolute:[TEST_PATH]/db/common/base/base1.txt, compressed = false, hash_type = sha1
+ INFO: [TEST_PATH]/db/common/base/base1.txt exists and matches backup (4B, 57%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/PG_VERSION
DEBUG: File->copy: local backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/PG_VERSION to local db:absolute:[TEST_PATH]/db/common/PG_VERSION, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/common/PG_VERSION.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/common/PG_VERSION.backrest.tmp to absolute:[TEST_PATH]/db/common/PG_VERSION, destination_path_create = false
- DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/base/base1.txt
- DEBUG: File->hash: db:absolute:[TEST_PATH]/db/common/base/base1.txt, compressed = false, hash_type = sha1
- DEBUG: [TEST_PATH]/db/common/base/base1.txt exists and is zero size or matches backup checksum
+ INFO: [TEST_PATH]/db/common/PG_VERSION restore (3B, 100%) checksum e1f7a3a299f62225cba076fc6d3d6e677f303482
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/recovery.conf
DEBUG: safe exit called, terminating threads
@@ -405,26 +407,32 @@ restore, backup '[BACKUP_LABEL]', remap (remap all paths)
DEBUG: File->link_create: db:absolute:[TEST_PATH]/db/tablespace/ts1-2 to db:absolute:[TEST_PATH]/db/common-2/pg_tblspc/1, hard = false, relative = false, destination_path_create = true
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/pg_tblspc/2
DEBUG: File->link_create: db:absolute:[TEST_PATH]/db/tablespace/ts2-2 to db:absolute:[TEST_PATH]/db/common-2/pg_tblspc/2, hard = false, relative = false, destination_path_create = true
- DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/PG_VERSION
- DEBUG: File->copy: local backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/PG_VERSION to local db:absolute:[TEST_PATH]/db/common-2/PG_VERSION, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
- DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp, user = [USER] = staff
- DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp to absolute:[TEST_PATH]/db/common-2/PG_VERSION, destination_path_create = false
+ DEBUG: starting restore in main process
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/badchecksum.txt
DEBUG: File->copy: local backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/badchecksum.txt to local db:absolute:[TEST_PATH]/db/common-2/badchecksum.txt, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/badchecksum.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/badchecksum.txt.backrest.tmp to absolute:[TEST_PATH]/db/common-2/badchecksum.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/common-2/badchecksum.txt restore (11B, 34%) checksum f927212cd08d11a42a666b2f04235398e9ceeb51
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/base/base1.txt
DEBUG: File->copy: local backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/base/base1.txt to local db:absolute:[TEST_PATH]/db/common-2/base/base1.txt, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/base/base1.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/base/base1.txt.backrest.tmp to absolute:[TEST_PATH]/db/common-2/base/base1.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/common-2/base/base1.txt restore (4B, 46%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
+ DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/PG_VERSION
+ DEBUG: File->copy: local backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/PG_VERSION to local db:absolute:[TEST_PATH]/db/common-2/PG_VERSION, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
+ DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp, user = [USER] = staff
+ DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp to absolute:[TEST_PATH]/db/common-2/PG_VERSION, destination_path_create = false
+ INFO: [TEST_PATH]/db/common-2/PG_VERSION restore (3B, 56%) checksum e1f7a3a299f62225cba076fc6d3d6e677f303482
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt
DEBUG: File->copy: local backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/tablespace/1/tablespace1.txt to local db:absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt.backrest.tmp to absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt restore (7B, 78%) checksum d85de07d6421d90aa9191c11c889bfde43680f0f
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt
DEBUG: File->copy: local backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/tablespace/2/tablespace2.txt to local db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt.backrest.tmp to absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt restore (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/recovery.conf
DEBUG: safe exit called, terminating threads
diff --git a/test/log/backup-synthetic-003.log b/test/log/backup-synthetic-003.log
index 769b9ea5e..05b356154 100644
--- a/test/log/backup-synthetic-003.log
+++ b/test/log/backup-synthetic-003.log
@@ -86,10 +86,10 @@ restore delta, backup '[BACKUP_LABEL]' (add and delete files)
INFO: checking/cleaning db path [TEST_PATH]/db/common
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common
DEBUG: File->manifest: db:absolute:[TEST_PATH]/db/common
- DEBUG: removing link [TEST_PATH]/db/common/link-test - destination changed
- DEBUG: removing file/link [TEST_PATH]/db/common/deleteme/deleteme.txt
- DEBUG: removing path [TEST_PATH]/db/common/deleteme
- DEBUG: setting [TEST_PATH]/db/common/base mode to 0700
+ INFO: removing link [TEST_PATH]/db/common/link-test - destination changed
+ INFO: removing file/link [TEST_PATH]/db/common/deleteme/deleteme.txt
+ INFO: removing path [TEST_PATH]/db/common/deleteme
+ INFO: setting [TEST_PATH]/db/common/base mode to 0700
INFO: 1 file(s) removed during cleanup
INFO: 1 path(s) removed during cleanup
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/base
@@ -98,13 +98,15 @@ restore delta, backup '[BACKUP_LABEL]' (add and delete files)
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/pg_tblspc
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/link-test
DEBUG: File->link_create: db:absolute:/test to db:absolute:[TEST_PATH]/db/common/link-test, hard = false, relative = false, destination_path_create = true
+ DEBUG: starting restore in main process
+ DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/base/base1.txt
+ DEBUG: File->hash: db:absolute:[TEST_PATH]/db/common/base/base1.txt, compressed = false, hash_type = sha1
+ INFO: [TEST_PATH]/db/common/base/base1.txt exists and matches backup (4B, 57%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/PG_VERSION
DEBUG: File->copy: local backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/PG_VERSION.gz to local db:absolute:[TEST_PATH]/db/common/PG_VERSION, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/common/PG_VERSION.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/common/PG_VERSION.backrest.tmp to absolute:[TEST_PATH]/db/common/PG_VERSION, destination_path_create = false
- DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/base/base1.txt
- DEBUG: File->hash: db:absolute:[TEST_PATH]/db/common/base/base1.txt, compressed = false, hash_type = sha1
- DEBUG: [TEST_PATH]/db/common/base/base1.txt exists and is zero size or matches backup checksum
+ INFO: [TEST_PATH]/db/common/PG_VERSION restore (3B, 100%) checksum e1f7a3a299f62225cba076fc6d3d6e677f303482
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/recovery.conf
DEBUG: safe exit called, terminating threads
@@ -357,26 +359,32 @@ restore, backup '[BACKUP_LABEL]', remap (remap all paths)
DEBUG: File->link_create: db:absolute:[TEST_PATH]/db/tablespace/ts1-2 to db:absolute:[TEST_PATH]/db/common-2/pg_tblspc/1, hard = false, relative = false, destination_path_create = true
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/pg_tblspc/2
DEBUG: File->link_create: db:absolute:[TEST_PATH]/db/tablespace/ts2-2 to db:absolute:[TEST_PATH]/db/common-2/pg_tblspc/2, hard = false, relative = false, destination_path_create = true
- DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/PG_VERSION
- DEBUG: File->copy: local backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/PG_VERSION.gz to local db:absolute:[TEST_PATH]/db/common-2/PG_VERSION, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
- DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp, user = [USER] = staff
- DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp to absolute:[TEST_PATH]/db/common-2/PG_VERSION, destination_path_create = false
+ DEBUG: starting restore in main process
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/badchecksum.txt
DEBUG: File->copy: local backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/badchecksum.txt.gz to local db:absolute:[TEST_PATH]/db/common-2/badchecksum.txt, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/badchecksum.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/badchecksum.txt.backrest.tmp to absolute:[TEST_PATH]/db/common-2/badchecksum.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/common-2/badchecksum.txt restore (11B, 34%) checksum f927212cd08d11a42a666b2f04235398e9ceeb51
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/base/base1.txt
DEBUG: File->copy: local backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/base/base1.txt.gz to local db:absolute:[TEST_PATH]/db/common-2/base/base1.txt, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/base/base1.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/base/base1.txt.backrest.tmp to absolute:[TEST_PATH]/db/common-2/base/base1.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/common-2/base/base1.txt restore (4B, 46%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
+ DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/PG_VERSION
+ DEBUG: File->copy: local backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/PG_VERSION.gz to local db:absolute:[TEST_PATH]/db/common-2/PG_VERSION, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
+ DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp, user = [USER] = staff
+ DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp to absolute:[TEST_PATH]/db/common-2/PG_VERSION, destination_path_create = false
+ INFO: [TEST_PATH]/db/common-2/PG_VERSION restore (3B, 56%) checksum e1f7a3a299f62225cba076fc6d3d6e677f303482
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt
DEBUG: File->copy: local backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/tablespace/1/tablespace1.txt.gz to local db:absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt.backrest.tmp to absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt restore (7B, 78%) checksum d85de07d6421d90aa9191c11c889bfde43680f0f
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt
DEBUG: File->copy: local backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/tablespace/2/tablespace2.txt.gz to local db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt.backrest.tmp to absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt restore (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/recovery.conf
DEBUG: safe exit called, terminating threads
diff --git a/test/log/backup-synthetic-004.log b/test/log/backup-synthetic-004.log
index b37a7b813..84039fcc6 100644
--- a/test/log/backup-synthetic-004.log
+++ b/test/log/backup-synthetic-004.log
@@ -86,10 +86,10 @@ restore delta, backup '[BACKUP_LABEL]' (add and delete files)
INFO: checking/cleaning db path [TEST_PATH]/db/common
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common
DEBUG: File->manifest: db:absolute:[TEST_PATH]/db/common
- DEBUG: removing link [TEST_PATH]/db/common/link-test - destination changed
- DEBUG: removing file/link [TEST_PATH]/db/common/deleteme/deleteme.txt
- DEBUG: removing path [TEST_PATH]/db/common/deleteme
- DEBUG: setting [TEST_PATH]/db/common/base mode to 0700
+ INFO: removing link [TEST_PATH]/db/common/link-test - destination changed
+ INFO: removing file/link [TEST_PATH]/db/common/deleteme/deleteme.txt
+ INFO: removing path [TEST_PATH]/db/common/deleteme
+ INFO: setting [TEST_PATH]/db/common/base mode to 0700
INFO: 1 file(s) removed during cleanup
INFO: 1 path(s) removed during cleanup
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/base
@@ -98,13 +98,15 @@ restore delta, backup '[BACKUP_LABEL]' (add and delete files)
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/pg_tblspc
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/link-test
DEBUG: File->link_create: db:absolute:/test to db:absolute:[TEST_PATH]/db/common/link-test, hard = false, relative = false, destination_path_create = true
+ DEBUG: starting restore in main process
+ DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/base/base1.txt
+ DEBUG: File->hash: db:absolute:[TEST_PATH]/db/common/base/base1.txt, compressed = false, hash_type = sha1
+ INFO: [TEST_PATH]/db/common/base/base1.txt exists and matches backup (4B, 57%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/PG_VERSION
DEBUG: File->copy: local backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/PG_VERSION.gz to local db:absolute:[TEST_PATH]/db/common/PG_VERSION, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/common/PG_VERSION.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/common/PG_VERSION.backrest.tmp to absolute:[TEST_PATH]/db/common/PG_VERSION, destination_path_create = false
- DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/base/base1.txt
- DEBUG: File->hash: db:absolute:[TEST_PATH]/db/common/base/base1.txt, compressed = false, hash_type = sha1
- DEBUG: [TEST_PATH]/db/common/base/base1.txt exists and is zero size or matches backup checksum
+ INFO: [TEST_PATH]/db/common/PG_VERSION restore (3B, 100%) checksum e1f7a3a299f62225cba076fc6d3d6e677f303482
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/recovery.conf
DEBUG: safe exit called, terminating threads
@@ -408,26 +410,32 @@ restore, backup '[BACKUP_LABEL]', remap (remap all paths)
DEBUG: File->link_create: db:absolute:[TEST_PATH]/db/tablespace/ts1-2 to db:absolute:[TEST_PATH]/db/common-2/pg_tblspc/1, hard = false, relative = false, destination_path_create = true
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/pg_tblspc/2
DEBUG: File->link_create: db:absolute:[TEST_PATH]/db/tablespace/ts2-2 to db:absolute:[TEST_PATH]/db/common-2/pg_tblspc/2, hard = false, relative = false, destination_path_create = true
- DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/PG_VERSION
- DEBUG: File->copy: local backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/PG_VERSION.gz to local db:absolute:[TEST_PATH]/db/common-2/PG_VERSION, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
- DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp, user = [USER] = staff
- DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp to absolute:[TEST_PATH]/db/common-2/PG_VERSION, destination_path_create = false
+ DEBUG: starting restore in main process
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/badchecksum.txt
DEBUG: File->copy: local backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/badchecksum.txt.gz to local db:absolute:[TEST_PATH]/db/common-2/badchecksum.txt, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/badchecksum.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/badchecksum.txt.backrest.tmp to absolute:[TEST_PATH]/db/common-2/badchecksum.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/common-2/badchecksum.txt restore (11B, 34%) checksum f927212cd08d11a42a666b2f04235398e9ceeb51
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/base/base1.txt
DEBUG: File->copy: local backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/base/base1.txt.gz to local db:absolute:[TEST_PATH]/db/common-2/base/base1.txt, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/base/base1.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/base/base1.txt.backrest.tmp to absolute:[TEST_PATH]/db/common-2/base/base1.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/common-2/base/base1.txt restore (4B, 46%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
+ DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/PG_VERSION
+ DEBUG: File->copy: local backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/PG_VERSION.gz to local db:absolute:[TEST_PATH]/db/common-2/PG_VERSION, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
+ DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp, user = [USER] = staff
+ DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp to absolute:[TEST_PATH]/db/common-2/PG_VERSION, destination_path_create = false
+ INFO: [TEST_PATH]/db/common-2/PG_VERSION restore (3B, 56%) checksum e1f7a3a299f62225cba076fc6d3d6e677f303482
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt
DEBUG: File->copy: local backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/tablespace/1/tablespace1.txt.gz to local db:absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt.backrest.tmp to absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt restore (7B, 78%) checksum d85de07d6421d90aa9191c11c889bfde43680f0f
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt
DEBUG: File->copy: local backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/tablespace/2/tablespace2.txt.gz to local db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt.backrest.tmp to absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt restore (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/recovery.conf
DEBUG: safe exit called, terminating threads
diff --git a/test/log/backup-synthetic-005.log b/test/log/backup-synthetic-005.log
index d6d4e7a00..6f7eb8956 100644
--- a/test/log/backup-synthetic-005.log
+++ b/test/log/backup-synthetic-005.log
@@ -84,10 +84,10 @@ restore delta, backup '[BACKUP_LABEL]' (add and delete files)
INFO: checking/cleaning db path [TEST_PATH]/db/common
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common
DEBUG: File->manifest: db:absolute:[TEST_PATH]/db/common
- DEBUG: removing link [TEST_PATH]/db/common/link-test - destination changed
- DEBUG: removing file/link [TEST_PATH]/db/common/deleteme/deleteme.txt
- DEBUG: removing path [TEST_PATH]/db/common/deleteme
- DEBUG: setting [TEST_PATH]/db/common/base mode to 0700
+ INFO: removing link [TEST_PATH]/db/common/link-test - destination changed
+ INFO: removing file/link [TEST_PATH]/db/common/deleteme/deleteme.txt
+ INFO: removing path [TEST_PATH]/db/common/deleteme
+ INFO: setting [TEST_PATH]/db/common/base mode to 0700
INFO: 1 file(s) removed during cleanup
INFO: 1 path(s) removed during cleanup
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/base
@@ -96,13 +96,15 @@ restore delta, backup '[BACKUP_LABEL]' (add and delete files)
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/pg_tblspc
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/link-test
DEBUG: File->link_create: db:absolute:/test to db:absolute:[TEST_PATH]/db/common/link-test, hard = false, relative = false, destination_path_create = true
+ DEBUG: starting restore in main process
+ DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/base/base1.txt
+ DEBUG: File->hash: db:absolute:[TEST_PATH]/db/common/base/base1.txt, compressed = false, hash_type = sha1
+ INFO: [TEST_PATH]/db/common/base/base1.txt exists and matches backup (4B, 57%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/PG_VERSION
DEBUG: File->copy: remote backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/PG_VERSION to local db:absolute:[TEST_PATH]/db/common/PG_VERSION, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/common/PG_VERSION.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/common/PG_VERSION.backrest.tmp to absolute:[TEST_PATH]/db/common/PG_VERSION, destination_path_create = false
- DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/base/base1.txt
- DEBUG: File->hash: db:absolute:[TEST_PATH]/db/common/base/base1.txt, compressed = false, hash_type = sha1
- DEBUG: [TEST_PATH]/db/common/base/base1.txt exists and is zero size or matches backup checksum
+ INFO: [TEST_PATH]/db/common/PG_VERSION restore (3B, 100%) checksum e1f7a3a299f62225cba076fc6d3d6e677f303482
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/recovery.conf
DEBUG: safe exit called, terminating threads
@@ -354,26 +356,32 @@ restore, backup '[BACKUP_LABEL]', remap (remap all paths)
DEBUG: File->link_create: db:absolute:[TEST_PATH]/db/tablespace/ts1-2 to db:absolute:[TEST_PATH]/db/common-2/pg_tblspc/1, hard = false, relative = false, destination_path_create = true
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/pg_tblspc/2
DEBUG: File->link_create: db:absolute:[TEST_PATH]/db/tablespace/ts2-2 to db:absolute:[TEST_PATH]/db/common-2/pg_tblspc/2, hard = false, relative = false, destination_path_create = true
- DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/PG_VERSION
- DEBUG: File->copy: remote backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/PG_VERSION to local db:absolute:[TEST_PATH]/db/common-2/PG_VERSION, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
- DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp, user = [USER] = staff
- DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp to absolute:[TEST_PATH]/db/common-2/PG_VERSION, destination_path_create = false
+ DEBUG: starting restore in main process
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/badchecksum.txt
DEBUG: File->copy: remote backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/badchecksum.txt to local db:absolute:[TEST_PATH]/db/common-2/badchecksum.txt, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/badchecksum.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/badchecksum.txt.backrest.tmp to absolute:[TEST_PATH]/db/common-2/badchecksum.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/common-2/badchecksum.txt restore (11B, 34%) checksum f927212cd08d11a42a666b2f04235398e9ceeb51
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/base/base1.txt
DEBUG: File->copy: remote backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/base/base1.txt to local db:absolute:[TEST_PATH]/db/common-2/base/base1.txt, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/base/base1.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/base/base1.txt.backrest.tmp to absolute:[TEST_PATH]/db/common-2/base/base1.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/common-2/base/base1.txt restore (4B, 46%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
+ DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/PG_VERSION
+ DEBUG: File->copy: remote backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/PG_VERSION to local db:absolute:[TEST_PATH]/db/common-2/PG_VERSION, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
+ DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp, user = [USER] = staff
+ DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp to absolute:[TEST_PATH]/db/common-2/PG_VERSION, destination_path_create = false
+ INFO: [TEST_PATH]/db/common-2/PG_VERSION restore (3B, 56%) checksum e1f7a3a299f62225cba076fc6d3d6e677f303482
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt
DEBUG: File->copy: remote backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/tablespace/1/tablespace1.txt to local db:absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt.backrest.tmp to absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt restore (7B, 78%) checksum d85de07d6421d90aa9191c11c889bfde43680f0f
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt
DEBUG: File->copy: remote backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/tablespace/2/tablespace2.txt to local db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt.backrest.tmp to absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt restore (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/recovery.conf
DEBUG: safe exit called, terminating threads
diff --git a/test/log/backup-synthetic-006.log b/test/log/backup-synthetic-006.log
index 723c91194..0a96a57fa 100644
--- a/test/log/backup-synthetic-006.log
+++ b/test/log/backup-synthetic-006.log
@@ -84,10 +84,10 @@ restore delta, backup '[BACKUP_LABEL]' (add and delete files)
INFO: checking/cleaning db path [TEST_PATH]/db/common
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common
DEBUG: File->manifest: db:absolute:[TEST_PATH]/db/common
- DEBUG: removing link [TEST_PATH]/db/common/link-test - destination changed
- DEBUG: removing file/link [TEST_PATH]/db/common/deleteme/deleteme.txt
- DEBUG: removing path [TEST_PATH]/db/common/deleteme
- DEBUG: setting [TEST_PATH]/db/common/base mode to 0700
+ INFO: removing link [TEST_PATH]/db/common/link-test - destination changed
+ INFO: removing file/link [TEST_PATH]/db/common/deleteme/deleteme.txt
+ INFO: removing path [TEST_PATH]/db/common/deleteme
+ INFO: setting [TEST_PATH]/db/common/base mode to 0700
INFO: 1 file(s) removed during cleanup
INFO: 1 path(s) removed during cleanup
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/base
@@ -96,13 +96,15 @@ restore delta, backup '[BACKUP_LABEL]' (add and delete files)
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/pg_tblspc
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/link-test
DEBUG: File->link_create: db:absolute:/test to db:absolute:[TEST_PATH]/db/common/link-test, hard = false, relative = false, destination_path_create = true
+ DEBUG: starting restore in main process
+ DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/base/base1.txt
+ DEBUG: File->hash: db:absolute:[TEST_PATH]/db/common/base/base1.txt, compressed = false, hash_type = sha1
+ INFO: [TEST_PATH]/db/common/base/base1.txt exists and matches backup (4B, 57%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/PG_VERSION
DEBUG: File->copy: remote backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/PG_VERSION to local db:absolute:[TEST_PATH]/db/common/PG_VERSION, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/common/PG_VERSION.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/common/PG_VERSION.backrest.tmp to absolute:[TEST_PATH]/db/common/PG_VERSION, destination_path_create = false
- DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/base/base1.txt
- DEBUG: File->hash: db:absolute:[TEST_PATH]/db/common/base/base1.txt, compressed = false, hash_type = sha1
- DEBUG: [TEST_PATH]/db/common/base/base1.txt exists and is zero size or matches backup checksum
+ INFO: [TEST_PATH]/db/common/PG_VERSION restore (3B, 100%) checksum e1f7a3a299f62225cba076fc6d3d6e677f303482
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/recovery.conf
DEBUG: safe exit called, terminating threads
@@ -405,26 +407,32 @@ restore, backup '[BACKUP_LABEL]', remap (remap all paths)
DEBUG: File->link_create: db:absolute:[TEST_PATH]/db/tablespace/ts1-2 to db:absolute:[TEST_PATH]/db/common-2/pg_tblspc/1, hard = false, relative = false, destination_path_create = true
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/pg_tblspc/2
DEBUG: File->link_create: db:absolute:[TEST_PATH]/db/tablespace/ts2-2 to db:absolute:[TEST_PATH]/db/common-2/pg_tblspc/2, hard = false, relative = false, destination_path_create = true
- DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/PG_VERSION
- DEBUG: File->copy: remote backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/PG_VERSION to local db:absolute:[TEST_PATH]/db/common-2/PG_VERSION, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
- DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp, user = [USER] = staff
- DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp to absolute:[TEST_PATH]/db/common-2/PG_VERSION, destination_path_create = false
+ DEBUG: starting restore in main process
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/badchecksum.txt
DEBUG: File->copy: remote backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/badchecksum.txt to local db:absolute:[TEST_PATH]/db/common-2/badchecksum.txt, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/badchecksum.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/badchecksum.txt.backrest.tmp to absolute:[TEST_PATH]/db/common-2/badchecksum.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/common-2/badchecksum.txt restore (11B, 34%) checksum f927212cd08d11a42a666b2f04235398e9ceeb51
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/base/base1.txt
DEBUG: File->copy: remote backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/base/base1.txt to local db:absolute:[TEST_PATH]/db/common-2/base/base1.txt, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/base/base1.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/base/base1.txt.backrest.tmp to absolute:[TEST_PATH]/db/common-2/base/base1.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/common-2/base/base1.txt restore (4B, 46%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
+ DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/PG_VERSION
+ DEBUG: File->copy: remote backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/PG_VERSION to local db:absolute:[TEST_PATH]/db/common-2/PG_VERSION, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
+ DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp, user = [USER] = staff
+ DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp to absolute:[TEST_PATH]/db/common-2/PG_VERSION, destination_path_create = false
+ INFO: [TEST_PATH]/db/common-2/PG_VERSION restore (3B, 56%) checksum e1f7a3a299f62225cba076fc6d3d6e677f303482
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt
DEBUG: File->copy: remote backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/tablespace/1/tablespace1.txt to local db:absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt.backrest.tmp to absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt restore (7B, 78%) checksum d85de07d6421d90aa9191c11c889bfde43680f0f
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt
DEBUG: File->copy: remote backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/tablespace/2/tablespace2.txt to local db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt.backrest.tmp to absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt restore (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/recovery.conf
DEBUG: safe exit called, terminating threads
diff --git a/test/log/backup-synthetic-007.log b/test/log/backup-synthetic-007.log
index 7a3abb43e..b2aef2b90 100644
--- a/test/log/backup-synthetic-007.log
+++ b/test/log/backup-synthetic-007.log
@@ -86,10 +86,10 @@ restore delta, backup '[BACKUP_LABEL]' (add and delete files)
INFO: checking/cleaning db path [TEST_PATH]/db/common
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common
DEBUG: File->manifest: db:absolute:[TEST_PATH]/db/common
- DEBUG: removing link [TEST_PATH]/db/common/link-test - destination changed
- DEBUG: removing file/link [TEST_PATH]/db/common/deleteme/deleteme.txt
- DEBUG: removing path [TEST_PATH]/db/common/deleteme
- DEBUG: setting [TEST_PATH]/db/common/base mode to 0700
+ INFO: removing link [TEST_PATH]/db/common/link-test - destination changed
+ INFO: removing file/link [TEST_PATH]/db/common/deleteme/deleteme.txt
+ INFO: removing path [TEST_PATH]/db/common/deleteme
+ INFO: setting [TEST_PATH]/db/common/base mode to 0700
INFO: 1 file(s) removed during cleanup
INFO: 1 path(s) removed during cleanup
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/base
@@ -98,13 +98,15 @@ restore delta, backup '[BACKUP_LABEL]' (add and delete files)
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/pg_tblspc
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/link-test
DEBUG: File->link_create: db:absolute:/test to db:absolute:[TEST_PATH]/db/common/link-test, hard = false, relative = false, destination_path_create = true
+ DEBUG: starting restore in main process
+ DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/base/base1.txt
+ DEBUG: File->hash: db:absolute:[TEST_PATH]/db/common/base/base1.txt, compressed = false, hash_type = sha1
+ INFO: [TEST_PATH]/db/common/base/base1.txt exists and matches backup (4B, 57%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/PG_VERSION
DEBUG: File->copy: remote backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/PG_VERSION.gz to local db:absolute:[TEST_PATH]/db/common/PG_VERSION, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/common/PG_VERSION.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/common/PG_VERSION.backrest.tmp to absolute:[TEST_PATH]/db/common/PG_VERSION, destination_path_create = false
- DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/base/base1.txt
- DEBUG: File->hash: db:absolute:[TEST_PATH]/db/common/base/base1.txt, compressed = false, hash_type = sha1
- DEBUG: [TEST_PATH]/db/common/base/base1.txt exists and is zero size or matches backup checksum
+ INFO: [TEST_PATH]/db/common/PG_VERSION restore (3B, 100%) checksum e1f7a3a299f62225cba076fc6d3d6e677f303482
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/recovery.conf
DEBUG: safe exit called, terminating threads
@@ -357,26 +359,32 @@ restore, backup '[BACKUP_LABEL]', remap (remap all paths)
DEBUG: File->link_create: db:absolute:[TEST_PATH]/db/tablespace/ts1-2 to db:absolute:[TEST_PATH]/db/common-2/pg_tblspc/1, hard = false, relative = false, destination_path_create = true
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/pg_tblspc/2
DEBUG: File->link_create: db:absolute:[TEST_PATH]/db/tablespace/ts2-2 to db:absolute:[TEST_PATH]/db/common-2/pg_tblspc/2, hard = false, relative = false, destination_path_create = true
- DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/PG_VERSION
- DEBUG: File->copy: remote backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/PG_VERSION.gz to local db:absolute:[TEST_PATH]/db/common-2/PG_VERSION, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
- DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp, user = [USER] = staff
- DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp to absolute:[TEST_PATH]/db/common-2/PG_VERSION, destination_path_create = false
+ DEBUG: starting restore in main process
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/badchecksum.txt
DEBUG: File->copy: remote backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/badchecksum.txt.gz to local db:absolute:[TEST_PATH]/db/common-2/badchecksum.txt, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/badchecksum.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/badchecksum.txt.backrest.tmp to absolute:[TEST_PATH]/db/common-2/badchecksum.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/common-2/badchecksum.txt restore (11B, 34%) checksum f927212cd08d11a42a666b2f04235398e9ceeb51
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/base/base1.txt
DEBUG: File->copy: remote backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/base/base1.txt.gz to local db:absolute:[TEST_PATH]/db/common-2/base/base1.txt, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/base/base1.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/base/base1.txt.backrest.tmp to absolute:[TEST_PATH]/db/common-2/base/base1.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/common-2/base/base1.txt restore (4B, 46%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
+ DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/PG_VERSION
+ DEBUG: File->copy: remote backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/PG_VERSION.gz to local db:absolute:[TEST_PATH]/db/common-2/PG_VERSION, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
+ DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp, user = [USER] = staff
+ DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp to absolute:[TEST_PATH]/db/common-2/PG_VERSION, destination_path_create = false
+ INFO: [TEST_PATH]/db/common-2/PG_VERSION restore (3B, 56%) checksum e1f7a3a299f62225cba076fc6d3d6e677f303482
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt
DEBUG: File->copy: remote backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/tablespace/1/tablespace1.txt.gz to local db:absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt.backrest.tmp to absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt restore (7B, 78%) checksum d85de07d6421d90aa9191c11c889bfde43680f0f
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt
DEBUG: File->copy: remote backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/tablespace/2/tablespace2.txt.gz to local db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt.backrest.tmp to absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt restore (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/recovery.conf
DEBUG: safe exit called, terminating threads
diff --git a/test/log/backup-synthetic-008.log b/test/log/backup-synthetic-008.log
index 97c73f6f1..409535a7a 100644
--- a/test/log/backup-synthetic-008.log
+++ b/test/log/backup-synthetic-008.log
@@ -86,10 +86,10 @@ restore delta, backup '[BACKUP_LABEL]' (add and delete files)
INFO: checking/cleaning db path [TEST_PATH]/db/common
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common
DEBUG: File->manifest: db:absolute:[TEST_PATH]/db/common
- DEBUG: removing link [TEST_PATH]/db/common/link-test - destination changed
- DEBUG: removing file/link [TEST_PATH]/db/common/deleteme/deleteme.txt
- DEBUG: removing path [TEST_PATH]/db/common/deleteme
- DEBUG: setting [TEST_PATH]/db/common/base mode to 0700
+ INFO: removing link [TEST_PATH]/db/common/link-test - destination changed
+ INFO: removing file/link [TEST_PATH]/db/common/deleteme/deleteme.txt
+ INFO: removing path [TEST_PATH]/db/common/deleteme
+ INFO: setting [TEST_PATH]/db/common/base mode to 0700
INFO: 1 file(s) removed during cleanup
INFO: 1 path(s) removed during cleanup
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/base
@@ -98,13 +98,15 @@ restore delta, backup '[BACKUP_LABEL]' (add and delete files)
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/pg_tblspc
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/link-test
DEBUG: File->link_create: db:absolute:/test to db:absolute:[TEST_PATH]/db/common/link-test, hard = false, relative = false, destination_path_create = true
+ DEBUG: starting restore in main process
+ DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/base/base1.txt
+ DEBUG: File->hash: db:absolute:[TEST_PATH]/db/common/base/base1.txt, compressed = false, hash_type = sha1
+ INFO: [TEST_PATH]/db/common/base/base1.txt exists and matches backup (4B, 57%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/PG_VERSION
DEBUG: File->copy: remote backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/PG_VERSION.gz to local db:absolute:[TEST_PATH]/db/common/PG_VERSION, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/common/PG_VERSION.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/common/PG_VERSION.backrest.tmp to absolute:[TEST_PATH]/db/common/PG_VERSION, destination_path_create = false
- DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/base/base1.txt
- DEBUG: File->hash: db:absolute:[TEST_PATH]/db/common/base/base1.txt, compressed = false, hash_type = sha1
- DEBUG: [TEST_PATH]/db/common/base/base1.txt exists and is zero size or matches backup checksum
+ INFO: [TEST_PATH]/db/common/PG_VERSION restore (3B, 100%) checksum e1f7a3a299f62225cba076fc6d3d6e677f303482
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common/recovery.conf
DEBUG: safe exit called, terminating threads
@@ -408,26 +410,32 @@ restore, backup '[BACKUP_LABEL]', remap (remap all paths)
DEBUG: File->link_create: db:absolute:[TEST_PATH]/db/tablespace/ts1-2 to db:absolute:[TEST_PATH]/db/common-2/pg_tblspc/1, hard = false, relative = false, destination_path_create = true
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/pg_tblspc/2
DEBUG: File->link_create: db:absolute:[TEST_PATH]/db/tablespace/ts2-2 to db:absolute:[TEST_PATH]/db/common-2/pg_tblspc/2, hard = false, relative = false, destination_path_create = true
- DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/PG_VERSION
- DEBUG: File->copy: remote backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/PG_VERSION.gz to local db:absolute:[TEST_PATH]/db/common-2/PG_VERSION, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
- DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp, user = [USER] = staff
- DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp to absolute:[TEST_PATH]/db/common-2/PG_VERSION, destination_path_create = false
+ DEBUG: starting restore in main process
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/badchecksum.txt
DEBUG: File->copy: remote backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/badchecksum.txt.gz to local db:absolute:[TEST_PATH]/db/common-2/badchecksum.txt, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/badchecksum.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/badchecksum.txt.backrest.tmp to absolute:[TEST_PATH]/db/common-2/badchecksum.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/common-2/badchecksum.txt restore (11B, 34%) checksum f927212cd08d11a42a666b2f04235398e9ceeb51
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/base/base1.txt
DEBUG: File->copy: remote backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/base/base1.txt.gz to local db:absolute:[TEST_PATH]/db/common-2/base/base1.txt, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/base/base1.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/base/base1.txt.backrest.tmp to absolute:[TEST_PATH]/db/common-2/base/base1.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/common-2/base/base1.txt restore (4B, 46%) checksum a3b357a3e395e43fcfb19bb13f3c1b5179279593
+ DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/PG_VERSION
+ DEBUG: File->copy: remote backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/base/PG_VERSION.gz to local db:absolute:[TEST_PATH]/db/common-2/PG_VERSION, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
+ DEBUG: File->owner: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp, user = [USER] = staff
+ DEBUG: File->move: absolute:[TEST_PATH]/db/common-2/PG_VERSION.backrest.tmp to absolute:[TEST_PATH]/db/common-2/PG_VERSION, destination_path_create = false
+ INFO: [TEST_PATH]/db/common-2/PG_VERSION restore (3B, 56%) checksum e1f7a3a299f62225cba076fc6d3d6e677f303482
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt
DEBUG: File->copy: remote backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/tablespace/1/tablespace1.txt.gz to local db:absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt.backrest.tmp to absolute:[TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/tablespace/ts1-2/tablespace1.txt restore (7B, 78%) checksum d85de07d6421d90aa9191c11c889bfde43680f0f
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt
DEBUG: File->copy: remote backup:cluster:[TEST_PATH]/backrest/backup/db/[BACKUP_LABEL]/tablespace/2/tablespace2.txt.gz to local db:absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [MODIFICATION_TIME], mode = 0600, user = [USER], group = [GROUP]
DEBUG: File->owner: absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt.backrest.tmp, user = [USER] = staff
DEBUG: File->move: absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt.backrest.tmp to absolute:[TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt, destination_path_create = false
+ INFO: [TEST_PATH]/db/tablespace/ts2-2/tablespace2.txt restore (7B, 100%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578
DEBUG: File->exists: db:absolute:[TEST_PATH]/db/common-2/recovery.conf
DEBUG: safe exit called, terminating threads
[parent: 095a9a0b8318]