Re: [sipX-dev] Input on XCF-651 implementation (Restore page from sipXconfig UI)
Paul Mossman wrote:
Thanks Scott,
4. The process manager does that as now, executing the normal
sipxconfig.sh startup wrapper script.
5. The wrapper script sees that there is a file in the special
well-known location; it validates that the indicated file is a
db backup file, and does the restore operation before restarting
sipXconfig.
I am planning to combine the notion of File and Database Configuration
into an atomic unit, so you Backup/Restore them either together, or
not at all.
I would agree. therefore, root is needed somehow as you are already aware
Given this, would it still make sense check for the file
in sipxconfig.sh, and not before? Aren't there Configuration Files
for services that will have been started before sipXconfig? e.g.
proxy-config.in and WatchDog.xml. Or, am I confusing this with the
larger sequencing problem?
Speaking of the larger sequencing problem, I plan to consider it
outside the scope of this feature. I think it is covered under
http://track.sipfoundry.org/browse/XPB-892 ?
I am also planning to allow Restore of Voicemail as well. I presume
sipXvxml.sh would be a good place to do a check for a special
well-known restore-mailstore-file, validate the mailstore.tar.gz, and
do the restore before proceeding with the sipXvxml start-up?
If it helps you decide how to proceed, as project leader of web ui, I
would not turn down a contribution just because it prompted for root
password in order to restore system as you outlined in your first
proposal and as described in issue comments. Admins that only wanted to
restore from CLI can continue to do so.