Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: kwukduck on April 13, 2012, 05:03:04 PM



Title: Exporting private keys (dumpprivkey)
Post by: kwukduck on April 13, 2012, 05:03:04 PM
Hey all

I'm trying to export some keys as a safe backup, i'm using an external drive as my datadir and that usually works fine but now i'm running into some trouble.

i'm running:

./bitcoind -datadir=/media/BTC listreceivedbyaddress

it then returns:
error: couldn't connect to server

Am i doing something wrong or how should i go about this?


Title: Re: Exporting private keys (dumpprivkey)
Post by: bulanula on April 13, 2012, 05:06:28 PM
Hey all

I'm trying to export some keys as a safe backup, i'm using an external drive as my datadir and that usually works fine but now i'm running into some trouble.

i'm running:

./bitcoind -datadir=/media/BTC listreceivedbyaddress

it then returns:
error: couldn't connect to server

Am i doing something wrong or how should i go about this?

Yeah seems like the BTC server is not running so first run something like : ./bitcoind -daemon

Then run your command !

Do I get a bounty if it works :D ?


Title: Re: Exporting private keys (dumpprivkey)
Post by: paraipan on April 13, 2012, 05:34:41 PM
Hey all

I'm trying to export some keys as a safe backup, i'm using an external drive as my datadir and that usually works fine but now i'm running into some trouble.

i'm running:

./bitcoind -datadir=/media/BTC listreceivedbyaddress

it then returns:
error: couldn't connect to server

Am i doing something wrong or how should i go about this?

i assume you enter that command by console so you can try first...

Code:
./bitcoind -datadir=/media/BTC&

wait a few moments for hte bitcoin daemon to start-up and do...

Code:
./bitcoind getinfo

or

Code:
./bitcoind help

when this commands return you some nice info try...

Code:
./bitcoind listreceivedbyaddress <address>