-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parse config.xml for db parameters, add omero db dump #74
Conversation
Under what conditions will you not want to use |
@joshmoore Changed as you suggested. Suggestions on defaults if they're not specified in config.xml or commandline, especially if we eventually encourage externals to use it? At the moment:
|
Defaults make sense since that's what will be used if no |
Yes, just that it'd be annoying if you inadvertently upgraded to a DEV schema since you couldn't revert to the last release. |
Agreed. It's likely too big a change for here, but it just occurs to me (even for our own use) if it would be safer to do:
i.e. non-destructively upgrade unless a flag like |
Issue added #75 |
Fixed a bug reported in #69 (comment) |
Time to retest? |
It's on @pwalczysko's todo list |
ToDo today. |
It seems that #69 (comment) is fixed. |
@pwalczysko The flag was changed (#74 (comment)) so that the omero config file will be used during upgrades unless
|
step 1: I have created an
|
|
Trying to make the dump of the DB which is 5.0 connected to the 5.0 server. |
The command
Again, 5.0 db and 5.0 server. |
Older versions of OMERO don't support this flag
|
|
Nevertheless the command
Again, the attempted upgrade was from 5.0.0 server (downloads page). |
THe presence/absence of config.xml is recorded at initialisation since importing omero.cli may lead to the creation of an empty config.xml when previosuly there was none. However for a server upgrade we want to re-read the config.xml after it is copied.
@pwalczysko Sorry about that, I thought it was tested by travis but it wasn't (though it is now). Should all be working now. |
The server has started successfully. |
Parse config.xml for db parameters, add omero db dump
Adds a new
--use-db-config
flag toomego db ...
andomego upgrade --upgradedb ...
. Ifomero.db.*
properties are already in the OMERO.server config using this flag means you don't need the--db{host,name,user}
argumentse.g. Instead of:
omego upgrade -v --sym OMERO-TEST --upgradedb --dbname name --dbuser user --dbpass pass ...
You can do:
omego upgrade -v --sym OMERO-TEST --upgradedb --use-db-config ...
To backup your existing omero DB (or replace
--use-db-config
with the old--db*
arguments):omego db dump --serverdir OMERO-TEST --use-db-config -v
If you want to override the dumped filename pass
--dumpfile ...
Use
-n
for a dry-run`