TurnKey Linux Virtual Appliance Library

TurnKey Linux - Core - Change Backup ID

Hello,

I setup a TKL-Core box and cloned it and changed the networking settings etc on each of them.

The backup ID is staying the same though, how would i change the Backup ID on one of the boxes?

 

Thank you!

Jeremy's picture

Try this

rm -f /var/lib/hubclient/server.conf

(From this post here). I think deleteing that file should do the trick!? (Hopefully it should force the Hub to create a new ServerID).

Didn't Work :(

 

Thanks for the suggestion. I ran that and rebooted it and it was still using the same BackupID

 

Any other suggestions?

Also..

It shows i don't have an actual /var/lib/hubclient/ directory.

Jeremy's picture

Hmmm, that's weird

I'm not sure why you don't have /var/lib/hubclient perhaps the devs have changed it??

Anyway, another way you could go is to remove the API key and re-add it to your Hub account.

To remove the API key:

rm -rf /var/lib/tklbam

Worked like a charm.

Perfect! Thanks again! 

Perfect after a tar backup and porting restore

 

# = command prompt of root

“So... I explain”

# <command>

 

FAST VPS BACKUP OR TRANSFER BETWEEN SERVERS:

“Verify/check Linux source you are backing up...”

# uname -a

Linux SomeDomain 2.6.18-pony6-3 #1 SMP Tue Mar 13 07:31:44 PDT 2012 i686 GNU/Linux

“In OLD server:”

# cd /var

# mkdir localbackup

# cd localbackup

# pwd

/var/localbackup

# tar cvpzf /var/localbackups/turnkeybackup.tgz --exclude=/proc --exclude=/lost+found --exclude=/mnt --exclude=/sys --exclude=/var/localbackups /

 

RESTORE IN NEW SERVER/TARGET SERVER:

 

“As a base standard VPS start, install the Ubuntu VPS image: Ubuntu 11.04 x86”

“In new/target server:”

# cd /var

# mkdir localbackup

# cd localbackup

# pwd

/var/localbackup

 

“Fetch the file via sftp or (not secure, but quick http)...”

 

# wget http://123.123.123.123/turnkeybackup.tgz

 

“When done, immediately remove any publicly exposed turnkeybackup.tgz file. “

"Would like to be without that exposure to risk!"

# tar xvpfz ./turnkeybackup.tgz -C /

 

# mkdir proc

# mkdir lost+found

# mkdir mnt

# mkdir sys

 

“Remove the turnkey API file”

# rm -rf /var/lib/tklbam

“Reapply API key: ABCDYOURKEYDCBA"

 

Backup and transfer server-server across the pond, with 540mb tgz file, is about 90 seconds and full server recovery after reboot is about 120 seconds on a standard VPS.

I’m looking out for conflicts in the TurnKey/Amazon server registration and any possible conflicts in DNS/ethernet VPS configurations.

So far all is looking good for a minimal TurnKey being ported to a VPS with no TurnKey install offerings :-(

May have some hidden issues so I await to see...

 

Thanks for the system, info and help,

 

Anton Hinxman

Jeremy's picture

Thanks for the feedback

Sounds like all is going well for you. :)

Although perhaps next time it would be better to start a new thread.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)