backdrop-contrib / backup_migrate

Port of the Drupal backup_migrate module to Backdrop
GNU General Public License v2.0
7 stars 14 forks source link

Backup config (as separate category) #35

Closed laryn closed 3 years ago

laryn commented 6 years ago

I'm not sure how much work it would take, but I think it would be great to expand B&M scope to also include config. I had started a site in one place and then was going to duplicate on my localhost, so I set up an empty Backdrop installation, activated B&M, and tried to restore an "entire site" archive. Various things seem to be missing and in a chat on Gitter @quicksketch suggested maybe B&M didn't handle config, which could be the reason.

I don't think B&M deals with config files. I think you'd need export your full config on the live site, and extra those into your active config directory. Then maybe run B&M? Not sure that would work. But content would easily go missing on import if the config files for the content types were missing.

...seems like something B&M could improve upon. As it didn't need to worry about config in D7, it's probably a shortcoming in its Backdrop version.

herbdool commented 6 years ago

I think that's right, no changes were made to work with config files. If your config files are in /files/ you might be in luck if you back up the db and files, otherwise nope.

quackers8me commented 6 years ago

@laryn When I ported it I believed I included all the steps to have a proper config setup as I believe this is the strength of Backdrop. I checked and BAM does write it's config to: files/config_[yourhash]/active/backup_migrate.settings.json and when you run the export sync see admin/config/development/configuration/sync and check the archive the BAM json is in there. Maybe a portion of the setting is not written out correct to the config file? Any idea on a way to test this?

laryn commented 6 years ago

@quackers8me Just to make sure we're talking about the same thing, I'm not referring to BAM saving its own settings in a config file, but including all config files in the "entire site" backup archive to download and restore on another site.

herbdool commented 6 years ago

@quackers8me from what I understand that only works if the config files are in the files directory. We can't assume that. The config directory is defined in settings.php

I think a new source should be written to capture config in all cases.

quackers8me commented 6 years ago

Ok, I understand now. Should the 'Sources' option be changed from DB to 'DB and Configs dir', and the Entire site would also include configs dir?

laryn commented 6 years ago

That sounds reasonable to me.

Graham-72 commented 6 years ago

This will be very useful. 👍

jenlampton commented 6 years ago

Plus one for this whole conversation! Ideally I'd like to see:

wilburec commented 3 years ago

I'm interested to work on this issue.

Can we expand this ticket to include Config as a category:

If that is the case, we should rename this issue to reflect that.

This would also make this issue a duplicate - #59

herbdool commented 3 years ago

I agree that the other one is a duplicate. I've closed it.

herbdool commented 3 years ago

@wilburec I'll happily review your work if you like.

stpaultim commented 3 years ago

Yes, I'd like to see this too.

quackers8me commented 3 years ago

Merged in PR #71