Question

Backup and Migrate is great as a backup system and thus allows some sort of versioning. This enables me to roll back easily when developing and testing small sites which I tend to develop in a live environment.Migrating a dev version to a live site is also quite easy this way.

Backup and Migrate does not work for SQLLite, however. I assume the best would be to put the site in maintenance mode, and copy the .ht.sqlite as a backup ... restoring should then be the same in reverse.

Am I on the right track?

Was it helpful?

Solution

I suggest the use of the Read only mode module, it places your site in the maintenance mode, but your visitors can still view the site without enter or change content.

Then make a copy of your database and get out of the maintenance mode.

OTHER TIPS

In general that sounds ok. You should also establish a shared lock on the database file using the SQLite API though.

There is also a backup api. So if you do this more often, maybe you could write a module for that.

More info: https://www.sqlite.org/backup.html

Licensed under: CC-BY-SA with attribution
Not affiliated with drupal.stackexchange
scroll top