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

When running restore from bee, the sessions table is wiped out #148

Open argiepiano opened 9 months ago

argiepiano commented 9 months ago

This is a follow up to https://github.com/backdrop-contrib/backup_migrate/issues/115

BAM (by default) doesn't include the sessions table in backed up database. When you restore from the UI, the old session table is somehow preserved intact, but restoring from bee wipes out its content. I'm not sure how and why this is happening. It may very well be that sessions building is being prevented when running bee.

yorkshire-pudding commented 8 months ago

When bee runs it tells Backdrop that is a CLI operation through the backdrop_is_cli() function. That may then tell Backdrop to do something different.

izmeez commented 8 months ago

Isn't this simply because by default BAM does not drop all tables before doing a restore. So while BAM backup did not preserve a sessions table, the site continued using the existing session table. Since restore also does not drop all tables before a restore (unless configured to do so) the session table remains as do any others through out the site, such as caches etc. So, I'd say this is normal behaviour. Maybe bee is doing override with drop tables before bam restore?