Hi all, I installed the WordPress app and created a secondary db. The modulo backup only the WordPress db, It’s possibile to define custom backup and restore commands?
This is what you should do with WordPress. I use the Plugin Updraftplus
Hi all, anyone could help me with this topic wihtout using internal wordpress plugin?
That’s not possible without modifiying the app package to backup all databases and restore them.
The problem is that on restore a new wordpress package is pulled that again just restores the wordpress database.
It’s possible to change ../etc/state-include.conf and ../bin/module-dump-state to at least backup the second database so you can find it in the restored app in the state directory to maybe import it manually. But this change won’t survive an update.
Can we accept to backup and restore all the databases ???
I designed ns8-lamp for that but for ns8-wordpress ???
May I ask why another database is needed in Wordpress? Is it because of a plugin?
I know that this is not the standard configuration, but we have some sites with a sub-site (maybe imported from other servers) and we have two separates databases.
I think that is better to backup all to avoid data-loss, but if this is not possible, should be better to avoid users creating databases…
is it possible to use ns8-mariadb and connect from the pod to the mysql server by using the wiregard IP ? 10.5.4.1 ……
like this the database is external and everything could be saved/restored ?
I think it could work, but it was only for convenience to have all inside the same cointainer and if you restart the instance you restart wordpress and the db.
It’s some effort but you could change the table prefix from wp_ to for example wp2_ for the second site so the tables for both sites could be in one database.
It’s not simple because if you have an external agency that works only on this db, it’s better to have separate databases. But I don’t understand why we don’t want to backup all databases… if it is allowed to create the db, we should backup them.
It’s always possible to create a database in the DB containers of the apps but usually just the database that’s used by the app is added to the backup (except for the database apps and ns8-lamp AFAIK) so we were just looking if we can keep it like that.
It’s possible to backup all databases but it needs a code update, a test and a new release.
As you want to keep the databases in ns8-wordpress (and not move it to ns8-mariadb) to be able to restart everything together in one app, there seems no other way than to include all databases in the backup/restore.
EDIT:
It seems multisite is also a legitimate use case for multiple databases, see for example WordPress Multisite: The Everything-You-Need-To-Know Guide
this was how ns7 worked…..we backuped and restored all databases, if one failed then the full restoration was failed. Therefore I am not really a big fan of this.
how to install it, is it a another container I guess
I’m not sure if another container is needed, I think it’s workable in the same wordpress container but it needs to be manually configured.
Multisite can be enabled in wp-config, see Create A Network – Advanced Administration Handbook | Developer.WordPress.org
Then it seems you can either use either domain names (in that case another HTTP route is needed) or paths for the other sites.
But I didn’t test it yet…
EDIT:
Another resource: Migrate WordPress sites into WordPress Multisite – Advanced Administration Handbook | Developer.WordPress.org
ok
@federico.ballarini can you help us to integrate multi database backup in wordpress
the backup could look to something like that
the restore could look to
Yeah, for sure. Tell me what you need ![]()
a pull request and the tests of the changes
ask anything you need