mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-02-07 13:42:41 +02:00
Implemented issue #156: Don't create backup symlinks in the repository.
This commit is contained in:
parent
11f724bdfc
commit
4c5470e049
@ -434,22 +434,26 @@ sub processManifest
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Create links
|
# Create links
|
||||||
my $strSectionLink = "$strPathKey:link";
|
#
|
||||||
|
# Non-tablespace links are no longer created in backup directories because they are potentially dangerous.
|
||||||
if ($oBackupManifest->test($strSectionLink))
|
# This feature may be brought back at a later date but more likely that it will be rethought completely.
|
||||||
{
|
#
|
||||||
foreach my $strLink ($oBackupManifest->keys($strSectionLink))
|
# my $strSectionLink = "$strPathKey:link";
|
||||||
{
|
#
|
||||||
# Create links except in pg_tblspc because they have already been created
|
# if ($oBackupManifest->test($strSectionLink))
|
||||||
if (!($strPathKey eq 'base' && $strLink =~ /^pg_tblspc\/.*/))
|
# {
|
||||||
{
|
# foreach my $strLink ($oBackupManifest->keys($strSectionLink))
|
||||||
$self->{oFile}->linkCreate(PATH_BACKUP_ABSOLUTE,
|
# {
|
||||||
$oBackupManifest->get($strSectionLink, $strLink, MANIFEST_SUBKEY_DESTINATION),
|
# # Create links except in pg_tblspc because they have already been created
|
||||||
PATH_BACKUP_TMP, "${strBackupDestinationPath}/${strLink}",
|
# if (!($strPathKey eq 'base' && $strLink =~ /^pg_tblspc\/.*/))
|
||||||
false, false, false);
|
# {
|
||||||
}
|
# $self->{oFile}->linkCreate(PATH_BACKUP_ABSOLUTE,
|
||||||
}
|
# $oBackupManifest->get($strSectionLink, $strLink, MANIFEST_SUBKEY_DESTINATION),
|
||||||
}
|
# PATH_BACKUP_TMP, "${strBackupDestinationPath}/${strLink}",
|
||||||
|
# false, false, false);
|
||||||
|
# }
|
||||||
|
# }
|
||||||
|
# }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user