It does not appear to be possible to edit the entries in "Exclude the following files or directories" in profiles. Attempting to save the form results in all data from these fields being lost including the default pathnames. I am using BAM version 7.x-2.2.

CommentFileSizeAuthor
#2 d7-bam-files-fixes.txt713 bytesAnonymous (not verified)

Comments

Anonymous’s picture

Further info: I did a fresh Drupal install with only BAM and BAM_files. Now when attempting to update the "Exclude the following files or directories" field in profiles, I also get the following error:

Notice: Undefined index: exclude_filepaths in backup_migrate_files_destination_filesource->backup_settings_form() (line 93 of /home/paul/www-testsites/drupal3/public_html/sites/all/modules/backup_migrate_files/includes/destinations.filesource.inc).

This was mentioned in http://drupal.org/node/1028310#comment-4660226 but the suggested fix no longer works, presumably because I am using BAM version 7.x-2.2 (this is a guess). Using Drupal 7.4.

Anonymous’s picture

StatusFileSize
new713 bytes

I fixed it for myself by removing the form nesting. However, I'm not sure why the original doesn't work. I've attached my changes (txt) for info and won't waste time making a patch unless requested. Incidentally, the 'imagecache' directory is now 'styles' in D7 (hence the other change in there!).

andrew_mallis’s picture

would like to see this fixed also.

Thank you!

BenK’s picture

Subscribing

Anonymous’s picture

I note, whilst building a new site, that these changes now appear to be in the latest dev version and the form(s) can be used to save configuration. I still get the error:

"exclude_filepaths in backup_migrate_files_destination_filesource->backup_settings_form()" but only if I install BAM_files after overriding the profile. The error can be fixed by reverting the profile and overriding again.

mermentau’s picture

Subscribe.
I don't get any errors after adding excluded directories, but there are no files backed up except the database file. I checked /home/mysite/public_html/sites/default/files and nothing. Same for the private backup in /home/mysite/public_html/sites/default/private-files.

Anonymous’s picture

bumpaw - that doesn't seem to have anything to do with this thread. Could you raise a new issue, please?

Anonymous’s picture

Title: File Backup Options Form Broken » Exclude Filepath Problem in Backup Options Form

The remaining issue in this thread has been raised again: http://drupal.org/node/1253674

Anonymous’s picture

Status: Active » Closed (duplicate)