Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicati generates WARNINGS for missing folders on restore. #2798

Open
1 task done
harr2969 opened this issue Oct 5, 2017 · 4 comments
Open
1 task done

Duplicati generates WARNINGS for missing folders on restore. #2798

harr2969 opened this issue Oct 5, 2017 · 4 comments

Comments

@harr2969
Copy link

harr2969 commented Oct 5, 2017

Installed yesterday, so far, yes :)
  • I have searched open and closed issues for duplicates.

Environment info

  • Duplicati version: Duplicati - 2.0.2.1_beta_2017-08-01
  • Operating system: Windows 10
  • Backend: local NTFS drive

Description

Performed backup, then restore to new location, got warning.

Warnings: [
Creating missing folder (redacted) for file C:\Users(redacted).exe,
Creating missing folder (redacted) for file C:\Users(redacted).exe ]

For restore operations, missing folders should not generate WARNINGS, especially if the restore is redirected to a new location instead of the original, as was my test case.

If you still want to log a missing folder, at most I would suggest they should be INFORMATIONAL, not WARNING.

Steps to reproduce

  1. Do backup
  2. Do restore to alternate location where sub-folders do not exist
  3. Receive notice about errors/warnings "WARNING WHILE RUNNING (backupname)" Got "X" warnings
  4. Check warnings... it's about missing folders. Duh. :)
  • Actual result:
    Warning
  • Expected result:
    No warning

Screenshots

capture
)

Debug log

@Pectojin
Copy link
Member

This does seem weird. Would it ever matter if the destination folder is missing during a restore?

If it never does it should indeed be informational or not logged at all.

@kenkendk
Copy link
Member

Usually this happens for a partial restore.

The reason it is a warning, is that the code is supposed to create the required folder structure first, and then restore the files. If a folder is missing, that is an indication that something unexpected has happened, hence the warning.

I think I recall that it can happen if you selectively restore a few files, as this excludes the folders from being restored. In this case the warnings should be "information" instead.

@ddemeyer
Copy link

Extra background... I got the same warning appearing 3 times when selecting Restore files... while the file listing is loading. So before selecting what to restore or pressing the Continue button.

@SamiLehtinen
Copy link

This issue is also triggered when you select a single file for backup, instead of whole directory:
Creating missing folder d:\a for file d:\a\b.test
Only backed up directories are created (?) and because there is now a file without a directory, it seems to trigger warning.
Version: 2.0.6.104_canary_2022-06-15, platform: Windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants