As you have a release version of Backup and Migrate for D7 (on the day it was released - w00t!), do you have plans to port Files to D7? These are two great modules.

CommentFileSizeAuthor
#43 backup_migrate_files-7.x-Ronan-June-8-plus-fix.tar_.gz9.87 KBhbfkf
#15 backup_migrate_files.tar_.gz9.11 KBAnonymous (not verified)
#8 backup_migrate_files.tar_.gz9.25 KBAnonymous (not verified)

Comments

gnappoman’s picture

I need this! 4 D7 2

zoltán balogh’s picture

Following

mattbk’s picture

Subscribe

mehtatejas’s picture

Subscribe

oscarescudero’s picture

many users of D7 and me need it too.

sea4’s picture

+1 I support the call for a D7 version :-)

Goulou’s picture

I vote for it!

Anonymous’s picture

Status: Active » Needs work
StatusFileSize
new9.25 KB

I expect Ronan et al are busy, so I have made a first-pass at porting this to D7. I've changed as little as possible in order to get it working.

I couldn't get 'public://' to work, so you'll have to specify 'sites/default/files' or whatever

It appears to be functioning okay for me, but I make no guarantees. Use it at your own risk!!

rodych’s picture

Subscribe

brightbold’s picture

Thanks @imonemus - I will give this a try!

ogi’s picture

subscribe

Anonymous’s picture

Note that you have to add .htaccess to the list of excluded files (in the profile) or you get permission problems when restoring. This file is set read-only in D7.

If anyone is actually using this version, I'll amend it to exclude this file by default.

drupa11y’s picture

Subscribe

Anonymous’s picture

Title: Port Backup & Migrate Files to D7? » D7 Port of Backup & Migrate Files
Status: Needs work » Needs review

Okay, here is a new version with a few minor fixes.

1. The file .htaccess is listed with the excluded files by default
2. You must now specify public:// or similar for the files destination directory instead of sites/default/files (I couldn't get it to work both ways).
3. You can backup with drush. Unfortunately, you can't restore with drush as there is a bug in the relevant part of the BAM module. I'll raise an issue for that if this module gets adopted.

If you've used the previous version I uploaded here, check that your schedule is set to backup files and not database (I changed the id for drush compatibility).

Anonymous’s picture

StatusFileSize
new9.11 KB
geek-merlin’s picture

sub

leemako’s picture

sub

Shai’s picture

I used the version from #15. I installed it and it's working. Great job, thanks.

Shai Gluskin

tebb’s picture

Thanks for your work imonemus.

Hope we can have this as a D7 release soon.

tonycpsu’s picture

Subscribing

webankit’s picture

+1

jeffwidman’s picture

+1

thomas4019’s picture

+1

plastikkposen’s picture

+1

nazgul17’s picture

+1

blackspiraldancer’s picture

following

Anonymous’s picture

Subscribed and works nicely

Anonymous’s picture

I'd like to modify this module so that it has the possibility to also backup site configuration/modules. I reviewed the PHP for it and it looks like it references back to the backup migrate module. Anyone have any ideas? I'm still rather new to PHP.

brightbold’s picture

wipeout_360: The Backup & Migrate module does indeed back up database tables, so that should get all your site & module configuration. Are you trying to do something that isn't covered either by this module or that one?

Anonymous’s picture

I would like to see something that backs up the whole install directory but copying the modules/libraries from one machine to another doesn't take long. I'll eventually be moving my installation to a multi-server instance and I am looking for a way to expedite the deployment process.

TripX’s picture

+1

sachbearbeiter’s picture

+1

bdunwood’s picture

+1

spacereactor’s picture

+1

thomjjames’s picture

subscribing +1

JGO’s picture

Me want! :)

basicmagic.net’s picture

subscribe

JGO’s picture

Btw the one posted here seems to work fine, maybe it should be made more official as a dev version ..

ankur’s picture

Using the port posted in comment #15 above, I'm getting the following error when trying to create a new backup profile:


Fatal error: Unsupported operand types in /var/www/html/iolani/drupal/includes/form.inc on line 1681

The error goes away when I disable backup_migrate_files and am only using backup_migrate and comes back when re-enabling backup_migrate_files.

I'll see if I can come back with a patch, but want to throw this out there in case anyone else is also trying to work with this.

Anonymous’s picture

I notice that Ronan committed a D7 version on 8th June. You might want to try that version in preference to my hack. (It's under "all releases").

Anonymous’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Needs review » Active
xandeadx’s picture

+1

hbfkf’s picture

The D7 version from 8th June by Ronan (see comment #40) has a small bug when I use it with Drupal 7.2: When you edit a "Backup and Migrate" profile, you get something like

Notice: Undefined index: exclude_filepaths in backup_migrate_files_destination_filesource->backup_settings_form() (line 93 of ... destinations.filesource.inc

Here's the fix that seems to work:

Index: Server/sites/all/modules/backup_migrate_files/includes/destinations.filesource.inc
===================================================================
--- Server/sites/all/modules/backup_migrate_files/includes/destinations.filesource.inc	(revision 2442)
+++ Server/sites/all/modules/backup_migrate_files/includes/destinations.filesource.inc	(working copy)
@@ -77,7 +77,7 @@
   /**
    * Get the form for the backup settings for this destination.
    */
-  function backup_settings_form($settings) {
+  function backup_settings_form(&$form, $settings) {
     $form['files'] = array(
       "#type" => "fieldset",
       "#title" => t("File Backup Options"),

I attach the module as I use it (it's the release by Ronan plus my fix).

Anonymous’s picture

Category: feature » task

It might be an idea to raise another issue for that bug (#43) and make up a patch for ronan. As a D7 version is now available, should we think about closing this thread?

koppie’s picture

Status: Active » Reviewed & tested by the community

I agree with imonemus. I've downloaded and tested the module and it seems to work fine. What I'm really wondering is why it doesn't show up on the module home page: http://drupal.org/project/backup_migrate_files

I had to go to the "releases" page to get the D7 version: http://drupal.org/node/556772/release

Since the module seems to work, at least for most people, it ought to be available on the module home page at least as a dev version. IMHO.

ronan’s picture

Status: Reviewed & tested by the community » Closed (fixed)