Symlinks are now handled correctly

This commit is contained in:
Carl Johnsen
2024-11-28 09:22:09 +01:00
parent 1ecb6e7c35
commit 9bcda7d6cf
2 changed files with 2 additions and 2 deletions
@@ -46,7 +46,7 @@ namespace Duplicati.Library.Main.Operation.Restore
{
try
{
var files = db.GetFilesToRestore(true).OrderByDescending(x => x.Length).ToArray();
var files = db.GetFilesToRestore2(true).OrderByDescending(x => x.Length).ToArray();
result.OperationProgressUpdater.UpdatePhase(OperationPhase.Restore_DownloadingRemoteFiles);
@@ -93,7 +93,7 @@ namespace Duplicati.Library.Main.Operation.Restore
missing_blocks = new_missing_blocks;
}
if (missing_blocks.Count == 0 || (missing_blocks.Count == 1 && missing_blocks[0].BlockSize == 0))
if (file.BlocksetID != LocalDatabase.SYMLINK_BLOCKSET_ID && (missing_blocks.Count == 0 || (missing_blocks.Count == 1 && missing_blocks[0].BlockSize == 0)))
{
if (options.Dryrun)
{