<div>No, file was not removed, but only changed with default opensips configuration file that comes with its source code, so i guess any file system utility won't help, specially when using EXT3 FS.</div><div><br></div>
<div>To avoid such situation in future i suggest to create backup configuration file from start up script i.e. /etc/init.d/opensips, e.g. whenever we run "/etc/init.d/opensips start", it should make a copy of opensips.cfg somewhere safe like,</div>
<div><br></div><div>cp -arvf /usr/local/opensips/opensips.cfg /var/run/opensips/opensips.cfg-<current-date-time></div><div><br></div><div>This backup is good not only for recovery but also to see what went to production when..</div>
<div><br></div><div>But for current situation, it seems i am helpless.</div><div><br></div><div>Thank you.</div><div><br><br><div class="gmail_quote">On Tue, Nov 6, 2012 at 4:22 PM, alexandre Moutot <span dir="ltr"><<a href="mailto:a.moutot@alphalink.fr" target="_blank">a.moutot@alphalink.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Have you try to recover your file from your FS ?<br>
<br>
Regards,<br>
<br>
M. A.<br>
<div><div class="h5"><br>
----- Original Message -----<br>
> From: "Muhammad Shahzad" <<a href="mailto:shaheryarkh@googlemail.com">shaheryarkh@googlemail.com</a>><br>
> To: "OpenSIPS users mailling list" <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>><br>
> Sent: Tuesday, November 6, 2012 3:57:33 PM<br>
> Subject: [OpenSIPS-Users] Recover running configuration of OpenSIPs<br>
> Hi,<br>
><br>
><br>
> Is there anyway to get currently loaded opensips.cfg in a running<br>
> instance of opensips? i have accidently lost the opensips<br>
> configuration of a running production server? The backup of<br>
> configuration file is bit old and does not contains most recent<br>
> changes so i am worried next time we restart opensips we may loose<br>
> some important changes in configuration file.<br>
><br>
><br>
><br>
> I know its a bit stupid / awkward situation but any help will be<br>
> highly appreciated.<br>
><br>
><br>
> Thank you.<br>
><br>
><br>
><br>
><br>
> --<br>
> Muhammad Shahzad<br>
> -----------------------------------<br>
> CISCO Rich Media Communication Specialist (CRMCS)<br>
> CISCO Certified Network Associate (CCNA)<br>
> Cell: <a href="tel:%2B49%20176%2099%2083%2010%2085" value="+4917699831085">+49 176 99 83 10 85</a><br>
> MSN: <a href="mailto:shari_786pk@hotmail.com">shari_786pk@hotmail.com</a><br>
> Email: <a href="mailto:shaheryarkh@googlemail.com">shaheryarkh@googlemail.com</a><br>
><br>
</div></div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Muhammad Shahzad<br>-----------------------------------<br>CISCO Rich Media Communication Specialist (CRMCS)<br>CISCO Certified Network Associate (CCNA)<br>Cell: +49 176 99 83 10 85<br>
MSN: <a href="mailto:shari_786pk@hotmail.com" target="_blank">shari_786pk@hotmail.com</a><br>Email: <a href="mailto:shaheryarkh@googlemail.com" target="_blank">shaheryarkh@googlemail.com</a><br>
</div>