{"id":1796,"date":"2020-12-22T19:56:29","date_gmt":"2020-12-23T01:56:29","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=1796"},"modified":"2020-12-22T19:58:09","modified_gmt":"2020-12-23T01:58:09","slug":"migrate-librenms-to-new-server","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/migrate-librenms-to-new-server\/","title":{"rendered":"Migrate LibreNMS to new Server"},"content":{"rendered":"<p>Some quick notes on manually moving LibreNMS to a new server.\u00a0 For more detailed instructions you can refer to the following post<\/p>\n<p><a href=\"http:\/\/www.incredigeek.com\/home\/recovering-librenms-from-crashed-xenserver-vm\/\">Recovering LibreNMS from crashed XenServer VM<\/a><\/p>\n<p>Steps<\/p>\n<ol>\n<li>Backup \/opt\/librenms file<\/li>\n<li>Backup librenms database<\/li>\n<li>Install LibreNMS on new server<\/li>\n<li>Import \/opt\/librenms files<\/li>\n<li>Import librenms database<\/li>\n<\/ol>\n<p><strong>Backing up LibreNMS files<\/strong><\/p>\n<p>LibreNMS stores all it&#8217;s files in \/opt\/librenms<br \/>\nQuick and easy way to back up the LibreNMS files is to use tar.<\/p>\n<pre>tar zcvf librenms_backup.tgz \/opt\/librenms<\/pre>\n<p><strong>Migrating Database<\/strong><\/p>\n<p>I believe you can copy the whole \/var\/lib\/mysql directory.\u00a0 Should be able to use the above command.\u00a0 If not you can do a mysqldump and then import it on the new system.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some quick notes on manually moving LibreNMS to a new server.\u00a0 For more detailed instructions you can refer to the following post Recovering LibreNMS from crashed XenServer VM Steps Backup \/opt\/librenms file Backup librenms database Install LibreNMS on new server &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/migrate-librenms-to-new-server\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[352],"tags":[75,353,1147,389],"class_list":["post-1796","post","type-post","status-publish","format-standard","hentry","category-librenms","tag-backup","tag-librenms","tag-migrate","tag-nms"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1796","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=1796"}],"version-history":[{"count":2,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1796\/revisions"}],"predecessor-version":[{"id":3786,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1796\/revisions\/3786"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=1796"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=1796"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=1796"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}