lists.netmrg.net lists.netmrg.net
NetMRG discussion and support
 
FAQ :: Search :: Memberlist :: Usergroups :: Register
Profile :: Log in to check your private messages :: Log in

Backup and move to a new box?

 
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support
Author Message
cantripnet
Helper


Joined: 09 Dec 2004
Posts: 11

PostPosted: Tue Dec 14, 2004 4:44 pm    Post subject: Backup and move to a new box? Reply with quote

Hello all -
after spending way too much time trying to get my machine to run the way I want to and monitor what I need to.... the hard drive is dying.

What is the best way to save the configs and migrate to a new box... or in general back up netmrg? I am getting tons of filelocks and exit
abnormally right now but am blaming the disk...stupid stupid bad disk...
Back to top
silfreed
Site Admin


Joined: 19 Jan 2003
Posts: 394
Location: Shippensburg, PA, USA

PostPosted: Tue Dec 14, 2004 6:15 pm    Post subject: Reply with quote

This should be fairly painless for you. There are only a couple things you need to backup and move over.
1) netmrg.xml
2) rrd directory (/usr/local/var/lib/netmrg/rrd/)
3) netmrg database (mysqldump -u root -p netmrg > netmrg.mysql)

The biggest thing is making sure you get the permissions saved in your rrd directory when you extract the tarball (-p, I believe). Then on your new box, install as normal and copy the items you backed up over top of your new installation.
One last thing; you'll probably want to stop the gatherer from cron before you start backing things up, and make sure it's disabled in cron on your new install before your restore the backup.
Let us know if you need any more help with specific command.
Back to top
dirty_al
Helper


Joined: 19 Dec 2003
Posts: 19

PostPosted: Wed Dec 15, 2004 7:46 pm    Post subject: Reply with quote

I think libexec/netmrg should also be backup if you have create custom scripts, as I have.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support All times are GMT
Page 1 of 1

 



smartBlue Style © 2002 Smartor
Powered by phpBB © 2001, 2002 phpBB Group