On Fri, 2007-04-13 at 10:21 -0400, Richard (Rogers @ work) wrote:
> Hi Ian,
> 
> Thanks for the direction.  This backs up all the config files and is simple
> enough.
> How about changes made to mySQL database?  I was under the impression that
> there are config info in the database as well.
> 
> Thanks,
> Richard

Why not use mysqldump to backup the database and scp or whatever to put
the backup archive on the backup machine?

e.g. as crontab entry like the following:
 5 5 * * *       /usr/bin/mysqldump --add_drop_table --opt --add_locks 
-u<dbuser> -p<password> <name of db> | bzip2 -c > /var/backups/db_backup_`date 
-I`.sql.bz


> ----- Original Message ----- 
> From: "Ian Darwin" <[EMAIL PROTECTED]>
> To: "Richard (Rogers @ work)" <[EMAIL PROTECTED]>
> Cc: <[email protected]>
> Sent: Friday, April 13, 2007 10:15 AM
> Subject: Re: [on-asterisk] Backup and restore Asterisk config from one host
> to another
> 
> 
> > Richard (Rogers @ work) wrote:
> > > Hi ,
> > >
> > > I would like save a snapshot of all my asterisk configurations from one
> host
> > > (primary )and restore it on another host (backup).
> > > I would like to do it using a command line/script rather than using
> freePBX.
> >
> > scp -r /etc/asterisk backuphost:/etc/asterisk
> >
> > Need an additional one for the mailbox directory if you want to back up
> > vmails.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
G. Roderick Singleton <[EMAIL PROTECTED]>
PATH tech

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to