Minemeld - best way to backup and move config to new image

Reply
L2 Linker

Minemeld - best way to backup and move config to new image

I am tring to move the /opt/minemeld/local/config directory to a new image of Minemeld I have running in AWS.  I can scp the config directory out of my exisintg Minemeld using winscp but when I try to copy it into my new Mindmeld image it always aborts.

 

It appears to be a permission issue but not sure how to around this.  I am logged in via winscp and ssh as the ubuntu user.

 

Can someone help with this?

 

Thank you.

 

Rich

Tags (2)
Highlighted
L7 Applicator

Re: Minemeld - best way to backup and move config to new image

Hi @rschunk,

to backup the config you should:

  1. open an ssh shell on the instance
  2. run the following commands
    $ sudo service minemeld stop
    $ tar -cvzf backup.tar.gz /opt/minemeld/local/config/ /opt/minemeld/local/prototypes/
  3. use scp/sftp to transfer backup.tar.gz to some safe location

to restore:

  1. use scp/sftp to transfer backup.tar.gz to the instance
  2. open an ssh shell on the instance
  3. run the following commands
    $ sudo minemeld stop
    $ sudo -g minemeld -u minemeld tar -C / -xvzf backup.tar.gz
    $ sudo minemeld start
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!

The Live Community thanks you for your participation!