My 'sites' directory is a link to another location (for example '/custom_path_to_sites')
When I backup & restore the new 'files' directory has a path like:
/custom_path_to_sites/a_site/files/custom_path_to_sites/a_site/files/
instead of:
/custom_path_to_sites/a_site/files/

I attached a small patch that fixes this glitch. Please review and port!

CommentFileSizeAuthor
allrealpath.patch939 bytesbdimofte

Comments

tangent’s picture

I am also seeing this behavior. My configuration uses a symlink for the "files" directory(ies) to keep content and code separate so this bug is a problem. The patch seems to resolve the issue for me although it's odd that the path includes a directory with the same name as the file. I haven't tested restoring yet to see if that is intentional or causes any problem.