Hello everybody.
Excellent solution for backup and migrate.
I have installed Backup and Migrate module. Too, i have read Readme.txt and i have followed all instructions. Once I activate the module and test it with Destination option equal to Download, backup is executed correctly. However, when I Select Destination option equal to Save to Files Directory appear this message:
"Unable to create or write to the save directory 'var/www/html/drupal/sites/www.abc.com/files/backup_migrate/manual'. Please check the file permissions on your files directory"
Files Directory have correct permissions for root and apache-drupal, 775 and it had been set up in Administer, File system. My software platform is: CentOS 5.0, Apache 2.2.3, Drupal 5.2, MySql 5.0.22, PHP 5.1.6, Token Drupal module 5.x-1.9.
Thank you very much for your help.
Comments
Comment #1
ronan commentedCan you upload files to the files directory elsewhere in Drupal? I'm using the built in Drupal directory creation functions to create my directories and set permissions, so if you can write to the files directory normally, you should be able to use Backup and Migrate.
Sorry I can't be more helpful. Are there any other symptoms that may help me figure this out?
Ronan
Comment #2
josedazagz commentedOk Ronan.
Thank you. I will too try to found the error in the next time. I will warn you about this.
Comment #3
RoiDanton commentedHi,
I have the same problem with my installation.
All rights look ok. The stange thing is, that the module was able to create the backup_migrate folder.
Is there something I can do to fix this manualy?
Regards,
Roi Danton
Comment #4
ronan commentedI'm using the built in drupal function to create the directories, so in theory if your installation is working correctly (if imagecache, css consolidation, file uploading etc are working) then this module should be fine.
As for a manual fix, I guess I'd be interested to hear if chmoding the backup_migrate directory and subdirectories to 777 makes any difference.
Meanwhile I'll comb over my code and look for anything I might have screwed up.
R
Comment #5
dugh commentedI just installed it, enabled it and then went to the module preferences, and immediately got this error:
"Unable to create or write to the save directory 'var/drupaldata/backup_migrate/manual'. Please check the file permissions on your files directory."
It seems to be stripping the leading forward slash off the path (in the above examples too). It should be /var/drupaldata... not var/drupaldata...
Comment #6
ronan commenteddugh: That's a good lead, I'll look into that when I get a chance.
Thanks
Ronan
Comment #7
wizian commentedAs dugh has indicated, a forward slash is missing in the directory path.
With version 5.x-1.0 you can get rid of this error by changing line 1000 of the backup_migrate.module (function _backup_migrate_check_destination_dir )
from:
$out = $subdir = trim( $directory ."/". $type, "/" );
to:
$out = $subdir = rtrim( $directory ."/". $type, "/" );
Hope that this helps.
Comment #8
ronan commentedAwesome. Thanks for helping figure this out (and by helping I mean doing all the work). I have committed wizian's fix to the d5 and d6 dev versions. Let me know if this fixes the problems you guys are having.
Thanks again for all your help tracking this down!
Comment #9
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.