• Crypto Sex Toys - PPC Adult Mega Store - 1000's of products, Same Day Dispatch, Fleshlights!
  • Advertise here for 1 PPC per day
  • Escrow for your PPC (PeerCoin) Trades. Fuzzy Escrow Service 1% fee
  • Limited Edition - Physical Primecoins and Peercoins! - Each is 1 Troy Ounce of .999 Fine Silver - Available with other merchandise only at FiniteByDesign.com

Author Topic: Cloning Servers  (Read 558 times)

Offline maco

  • Jr. Member
  • **
  • Posts: 9
  • Karma: +0/-0
  • Hello I'm new here
    • View Profile
Cloning Servers
« on: July 21, 2013, 08:55:09 pm »
Hello all,

Question about Linux.. Server running Ubu 12.04 X64, and I want to copy all my files and wallet.dat and
everything that I currently have on one servers over to another servers. How would I be able to do that?

No, I do not use digital ocean. I cannot use snapshots.  What would you recommend? 

Offline ivanlabrie

  • Jr. Member
  • **
  • Posts: 42
  • Karma: +1/-0
  • Hello I'm new here
    • View Profile
Re: Cloning Servers
« Reply #1 on: July 21, 2013, 10:56:09 pm »
Good question...I'd like an answer as well, have two servers running but had to manually install them. :p

Offline FuzzyBear

  • Administrator
  • Sr. Member
  • *****
  • Posts: 365
  • Karma: +22/-0
    • View Profile
Re: Cloning Servers
« Reply #2 on: July 21, 2013, 11:12:08 pm »
I have nt done this myself but have heard of people talking of management server programs like Puppet and found thes related question: http://serverfault.com/questions/394891/linux-imaging-backup-solution?rq=1

and this: http://serverfault.com/questions/232991/create-an-image-of-currently-linux-installed-with-ssh

if you find a solution perhaps a guide posted here would be greatly appreciated by users :)

FuzzyBear
BTC: 1FvMYwtkrQakoL8Zq1GjfKqTkm2a7TKt6N  |  LTC: LbMPUzwPRkWa5hCJGrEiRCeoYExY6Ujt1D  |  DEV: 1JfbPx4nSGFxfzhTK1h3gHbp1E1BkFbwFW
PPC: PDtcFPhMa9Hc9zTfoRG7zcURCRpcpRdMym  |  TRC: 1FzdruHpffAeW2ZBctDLwR8P4APVpATu2j  |  FRC: 1BADxscUvT42SFXZwXgxEfWVDHkV1QPTEj
NMC: N7q9zg9h4Scfx6R25RTL8LdGxCBQbgq8wz  |

Offline albi

  • Jr. Member
  • **
  • Posts: 9
  • Karma: +0/-0
    • View Profile
    • Personal website
Re: Cloning Servers
« Reply #3 on: July 22, 2013, 03:22:29 am »
Be careful about cloning your wallet. It has 100 adresses generated, but once all of them are used, each wallet will generate new (random) ones - meaning that you will still need files of each individual wallet to retrieve your coins. I'd look into some other solutions, like running a script that sends coins automatically to your main wallet once they mature.

You can get more info here: https://en.bitcoin.it/wiki/BIP_0032 (especially "Motivation" section)

If you really want to do this - just write a bash script that downloads your ~/.primecoin from some private FTP account and does installation of primecoin client (you can find tutorials on this forum and btctalk). This is way easier solution rather than doing full system copy and it takes less time.

If your host supports creating VM's with predefined private SSH keys, you can even execute your commands remotely without manually logging into VM's shell.

EDIT: Accidentally a letter
EDIT 2: Once again
EDIT 3: Or you can import private key using a script: http://www.reddit.com/r/primecoin/comments/1irxhc/need_expert_to_help_with_compilation_issue/cb7kjeh
« Last Edit: July 22, 2013, 04:13:39 am by albi »
BTC: 1M1Xqm3GKNawhdKSNXgymYB72TBUnS9z4r
XPM: Aa8hrQ3R5HAjTHPw4zediU1EnHGft5UdgS

Offline maco

  • Jr. Member
  • **
  • Posts: 9
  • Karma: +0/-0
  • Hello I'm new here
    • View Profile
Re: Cloning Servers
« Reply #4 on: July 22, 2013, 05:00:47 am »
Thanks all, good advice so far. Ah so the once I reach 100 addresses, then what? I mean, realistically I only need 1 address, right?  The main point I am getting at is that I want to use the wallet on all servers to work together. How would I retrieve the wallet.dat I can't seem to find it anywhere. It isn't wallet.cpp is it?

Be careful about cloning your wallet. It has 100 adresses generated, but once all of them are used, each wallet will generate new (random) ones - meaning that you will still need files of each individual wallet to retrieve your coins. I'd look into some other solutions, like running a script that sends coins automatically to your main wallet once they mature.


I am assuming /.primecoin/wallet.dat  is the location, right?  and the same goes with HP5?

You can get more info here: https://en.bitcoin.it/wiki/BIP_0032 (especially "Motivation" section)

If you really want to do this - just write a bash script that downloads your ~/.primecoin from some private FTP account and does installation of primecoin client (you can find tutorials on this forum and btctalk). This is way easier solution rather than doing full system copy and it takes less time.

If your host supports creating VM's with predefined private SSH keys, you can even execute your commands remotely without manually logging into VM's shell.

EDIT: Accidentally a letter
EDIT 2: Once again
EDIT 3: Or you can import private key using a script: http://www.reddit.com/r/primecoin/comments/1irxhc/need_expert_to_help_with_compilation_issue/cb7kjeh
« Last Edit: July 22, 2013, 05:12:40 am by maco »

Offline albi

  • Jr. Member
  • **
  • Posts: 9
  • Karma: +0/-0
    • View Profile
    • Personal website
Re: Cloning Servers
« Reply #5 on: July 22, 2013, 05:09:18 am »
Every time you mine coins, wallet will get one address from its pool and send coins to that address. Once you hit 100 limit, it will create additional 100 addresses, but each wallet will create diffrent ones.

Realistically you will need as many addresses as many blocks you are going to mine.

wallet.dat is in ~/.primecoin directory.
BTC: 1M1Xqm3GKNawhdKSNXgymYB72TBUnS9z4r
XPM: Aa8hrQ3R5HAjTHPw4zediU1EnHGft5UdgS

Offline maco

  • Jr. Member
  • **
  • Posts: 9
  • Karma: +0/-0
  • Hello I'm new here
    • View Profile
Re: Cloning Servers
« Reply #6 on: July 22, 2013, 05:13:28 am »
Perfect, yeah I edited that.. funny I knew the answer but I still ask. Thanks for the quick reply. I got a long way to go in learning linux. Thanks!

Offline AlexMc

  • Jr. Member
  • **
  • Posts: 30
  • Karma: +1/-0
    • View Profile
Re: Cloning Servers
« Reply #7 on: July 22, 2013, 02:55:23 pm »
I've used Symantec's Ghost software in the past for cloning Windows based servers.  It runs off a bootable CD and supports FAT, NTFS, EXT2 and EXT3 so it should do the job for Linux too.

Here's a link to the product page, I see they have a Trialware version available, but I'm not sure if it would be limited in some way.

http://www.symantec.com/en/za/ghost-solution-suite

Found this while searching for Ghost, and it may work for you too:

http://sourceforge.net/projects/g4l/ 

Good Luck!
XPM: AHAvjpJMzyhRF9urRzNDajrCLe6DJ981Zy