Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Fri May 26, 2017 1:57 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Best way to migrate settings?
PostPosted: Wed Jul 13, 2016 1:05 pm 
Offline
Cacti User
User avatar

Joined: Thu Nov 12, 2009 3:07 pm
Posts: 105
Hello,

I've been periodically checking out the head of the develop branch from git and playing around with the new features. I understand that it is a development branch and I shouldn't expect anything in the way of stability, but it would be nice to be able to migrate various system settings to each new MySQL database that I create... or somehow just patch or update the existing database when a table gets updated etc.

What is the best practice for this? Currently I rename my existing cacti database to cacti_datestamp or something along those lines, then create a new empty cacti database and load up cacti.sql. However, this requires that I go back into system settings and tweak everything again.

Cheers


Top
 Profile  
 
 Post subject: Re: Best way to migrate settings?
PostPosted: Fri Jul 15, 2016 9:32 am 
Offline
Developer
User avatar

Joined: Thu Feb 20, 2003 10:16 am
Posts: 1635
Location: Canada
Make a copy of the database.

The upgrade procedure in Cacti updates the tables. See https://github.com/Cacti/cacti/tree/develop/install

_________________
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca


Top
 Profile  
 
 Post subject: Re: Best way to migrate settings?
PostPosted: Sat Jul 16, 2016 1:25 pm 
Offline
Developer

Joined: Thu Apr 07, 2005 3:29 pm
Posts: 2534
Location: B/CS Texas
I don't use a new DB, I just re-upgrade the one in place. I just create a file with this in it.
Code:
<?php
include('include/global.php');
db_execute("UPDATE version SET  cacti = '0.8.8h'");
Header("Location: index.php\n\n");


Then that will force the upgrade wizard to run me through the DB upgrade again for the 1.0 branch.

_________________
CactiEZ CD


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group