My sympathies.  It only took a few of those moments for me to add this to
cron:
#!/bin/sh
tar zcvf /root/backups/`date +%a`_asterisk_etc.tgz /etc/asterisk/
1&>/dev/null

(I run trixbox, so this is in addition to a trixbox/freepbx/mysql backup
that runs once a week).

Now I have a daily tar file that goes back a week for these kinds of
things.  Already saved my bacon.

--
sacha

On 2/18/07, David Cook (Canada) <[EMAIL PROTECTED]> wrote:

Well it is 2:00AM and I just finished rebuilding my dialplan. (Was
editing, wifi went away, had a .*swp file, like an idiot got rid of the
wrong file).

1. Asterisk is still running with the dialplan in memory
2. asterisk -rx 'show dialplan' > my_cya_file
3. Edit my_cya_file. Not completely the right format, but write some
scripts and edit away. This file will also not have any comments, nor
constants defined. You will have to do this yourself. But you can save
it.

Yes, _now_ I have a backup copy ;-/

dbc.
--
David Cook (Canada)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to