Restore public files not creating directory

Created on 25 October 2021, about 3 years ago
Updated 5 November 2023, about 1 year ago

I have backed up database and files from site A. When I am trying to import database and files to Site B using restore, database import worked fine.
For files, I am getting error as "Unable to create directory for public:///2021-10/image.png". I checked the permission of the folder. This is not a permission issue. If I create the folder(2021-10) manually and then do restore, files are getting created. My doubt is why the folder is not created? Is this the expected behavior?
Any help much appreciated!

🐛 Bug report
Status

Needs work

Version

5.0

Component

Code

Created by

🇮🇳India Nivedha

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇧🇪Belgium softpol

    The patch works for me, but all directories are created with mod = 777, while the original mod was (in my case) 755.

    Systeemnaam: backup_migrate
    Versie: 5.0.3

    BTW: this fix now exists for almost 2 years and is still not merged into an update of the module?

Production build 0.71.5 2024