Mossman, Paul (Paul) wrote:
Cristi wrote:
  
 - script running from sipXconfig: -e and --verify options are passed
automatically and the application will exit with an error code if version
is wrong or archive is wrong; script will exit with code 0 if verification
succeeds - sipXconfig proceeds then with the restore
    

Just to clarify, sipXconfig will call sipx-restore to check the archives, and then again to invoke the restore?

(I think that makes sense, because we expect sipXconfig to be shut down before the restore call completes.)


-Paul
[email protected]



  
Indeed, sipXconfig will first validate the backups (see void org.sipfoundry.sipxconfig.admin.Restore.validate(List<BackupBean> backups)) and then it will perform the restore (void org.sipfoundry.sipxconfig.admin.Restore.perform(List<BackupBean> backups)).
validate will append --verify to the command line script and will exit with error code or 0. Error code != 0 will stop the restore process.

It's actually nothing new here, only some further sanity checks are added to the verification process.

C
_______________________________________________
sipx-dev mailing list [email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev
sipXecs IP PBX -- http://www.sipfoundry.org/

Reply via email to