I'm trying to restore the files backuped from dev to staging environment but the system is extracting the files with all directory structure. The result is like this: public://sites/default/files/[all extracted files].

Can anybody help me?

Comments

ginorodrigues’s picture

Title: Backup and Migrate files creating subdirectory structure (public://sites/default/files) » Files restore duplicating directory structure (sites/default/files/sites/default/files)

Same here (eg: sites/default/files/sites/default/files).

It is strange that the same was happening while restoring files with https://drupal.org/project/backup_migrate_files, including even the zip filename (eg: sites/default/files/sitename-2014-06-10-T12-00-00/sites/default/files).

Any help on this?

  • ronan committed f36a782 on 7.x-3.x
    [#2280743] Files restore duplicating directory structure (sites/default/...
ronan’s picture

Version: 7.x-3.0 » 7.x-3.x-dev
Status: Active » Fixed

This was a problem with the backups not the restore. There was no reason to have the sites/default/files part be in paths of the backups so I removed that. That means your existing backups still won't restore properly (although you can simply upload the files in the right spot if you need to restore from one) but the new ones going forward should work.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.