|
|
| Author |
Message |
cantripnet Helper
Joined: 09 Dec 2004 Posts: 11
|
Posted: Tue Dec 14, 2004 4:44 pm Post subject: Backup and move to a new box? |
|
|
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
|
Posted: Tue Dec 14, 2004 6:15 pm Post subject: |
|
|
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
|
Posted: Wed Dec 15, 2004 7:46 pm Post subject: |
|
|
| I think libexec/netmrg should also be backup if you have create custom scripts, as I have. |
|
| Back to top |
|
 |
|