How can I restore it?
copy the backed-up file /home/e-smith/db/selintra to /home/e-smith/db/selintra-work and then issue a commit at the globals panel or if you want to be more direct, copy it to /home/e-smith/db/selintra and then do
signal-event conf-asterisk
at the console.
That should do it for you.
If you want to automate it you might create a *906* to fetch it and issue the commit from asterisk itself.
Kind Regards
Selintra