Closed laryn closed 3 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.
@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?
@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.
@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.
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?
That sounds reasonable to me.
This will be very useful. 👍
Plus one for this whole conversation! Ideally I'd like to see:
Configuration directory
to appear in the "Backup Source" options list by itselfEntire site (code, files, & db)
changed to Entire site (code, files, db & config)
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
I agree that the other one is a duplicate. I've closed it.
@wilburec I'll happily review your work if you like.
Yes, I'd like to see this too.
Merged in PR #71
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.