Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This can be done really easy with rsync:

Code Block
rsync -r root@uburntoroot@myserver.opmantek.netcom:/usr/local/nmis8/conf /usr/local/nmis9

...

  • Replace all nmis8 occurrences by nmis9.
  • Remove Replace 'sql' section for 'database'.
  • Add database section.


Code Block
  'database' => {
    'db_name' => 'nmisng',
    'db_password' => 'op42flow42',
    'db_port' => '27017',
    'db_query_timeout' => 5000,
    'db_server' => 'localhost',
    'db_username' => 'opUserRW',
    'db_never_remove_indices' => [ 'nodes' ],
  },
...
 '<nmis_base>' => '/usr/local/nmis9',
 '<url_base>' => '/nmis9',
 '<cgi_url_base>' => '/cgi-nmis9',
..
		'nmisd_max_workers' => 10, # set to zero to disable multiprocessing
		'nmisd_worker_cycle' => 100,	# workers sleep no longer than X between cycles
		'nmisd_scheduler_cycle' => 10, # the supervisor daemon sleeps no longer than X between cycles

		'nmisd_fping_worker' => 'true', # if true, at dedicated worker for fping use used
		'postpone_clashing_schedule' => 30, # if positive, clashing jobs are retried N seconds later, otherwise clashing jobs are discarded

...

This can be done really easy with rsync:

Code Block
rsync -r root@uburntoroot@myserver.opmantek.netcom:/usr/local/nmis8/database/nodes /usr/local/nmis9/database

...

This can be done really easy with rsync:

Code Block
rsync -r root@uburntoroot@myserver.opmantek.netcom:/usr/local/omk/conf /usr/local/omk

...

  • copy the data with rsync:
Code Block
rsync -r root@uburntoroot@myserver.opmantek.netcom:/data/mongodump /data
  • Restore:

...

Code Block
mongorestore -u opUserRW -p op42flow42 /tmpdata/mongodump/


Step 3. OMK Applications considerations

...

We can copy the opreports and reports directories into the new application to move all the reports:

Code Block
rsync -r root@uburntoroot@myserver.opmantek.netcom:/usr/local/omk/var/reports var/
rsync -r root@uburntoroot@myserver.opmantek.netcom:/usr/local/omk/var/opreports var/

...