Bitcoin Forum
December 02, 2016, 08:06:04 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Use XDG folder instead of .bitcoin  (Read 1135 times)
ploum
Sr. Member
****
Offline Offline

Activity: 378



View Profile WWW
October 25, 2010, 03:17:00 PM
 #1

It is advised everywhere to backup the wallet.dat file, which, under Linux, sits in ~/.bitcoin

In fact, the new Freedesktop specification recommand to not use that but, instead, use XDG_ variables.

By default, important data would be in ~/.local/share/bitcoin. That's really helpful because it means that simply backuping .local is enough (and you don't have to care especially about bitcoin)


Read http://ploum.net/post/207-modify-your-application-to-use-xdg-folders  for more informations.

Blog posts about Bitcoin - 1KdRBbhjo72CqKTrFsQed6s9NMrvwvrUkq
1480709164
Hero Member
*
Offline Offline

Posts: 1480709164

View Profile Personal Message (Offline)

Ignore
1480709164
Reply with quote  #2

1480709164
Report to moderator
1480709164
Hero Member
*
Offline Offline

Posts: 1480709164

View Profile Personal Message (Offline)

Ignore
1480709164
Reply with quote  #2

1480709164
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1480709164
Hero Member
*
Offline Offline

Posts: 1480709164

View Profile Personal Message (Offline)

Ignore
1480709164
Reply with quote  #2

1480709164
Report to moderator
1480709164
Hero Member
*
Offline Offline

Posts: 1480709164

View Profile Personal Message (Offline)

Ignore
1480709164
Reply with quote  #2

1480709164
Report to moderator
1480709164
Hero Member
*
Offline Offline

Posts: 1480709164

View Profile Personal Message (Offline)

Ignore
1480709164
Reply with quote  #2

1480709164
Report to moderator
grondilu
Legendary
*
Offline Offline

Activity: 1134


View Profile
October 25, 2010, 03:36:39 PM
 #2

It is advised everywhere to backup the wallet.dat file, which, under Linux, sits in ~/.bitcoin

In fact, the new Freedesktop specification recommand to not use that but, instead, use XDG_ variables.

By default, important data would be in ~/.local/share/bitcoin. That's really helpful because it means that simply backuping .local is enough (and you don't have to care especially about bitcoin)

Read http://ploum.net/post/207-modify-your-application-to-use-xdg-folders  for more informations.

This is very true.  Indeed the use of .local is recommanded.  I suggest making a symbolic link :

ln -s .local/share/bitcoin  .bitcoin


ShadowOfHarbringer
Legendary
*
Offline Offline

Activity: 1470


Bringing Legendary Har® to you since 1952


View Profile
October 25, 2010, 04:16:15 PM
 #3

Agreed, but with one adjustement:

there should be a ~/.bitcoin symlink to ~/.local/share/.bitcoin

Not everybody is used to the "new way" and will look for the bitcoin folder in wrong place.

MoonShadow
Legendary
*
Offline Offline

Activity: 1666



View Profile
October 25, 2010, 08:50:46 PM
 #4


By default, important data would be in ~/.local/share/bitcoin. That's really helpful because it means that simply backuping .local is enough (and you don't have to care especially about bitcoin)


It is advisable to backup the wallet.dat, yes, but using ~/.local... adds the problem of proliferation of copies of your wallet.dat, increasing the risks of a copy of it becoming available to a thief.  Currently, the wallet.dat file is not encrypted while in use, so backing up the wallet.dat file anywhere is akin to leaving your checkbook on the counter at Wal-Mart while you go out to your car. 

"The powers of financial capitalism had another far-reaching aim, nothing less than to create a world system of financial control in private hands able to dominate the political system of each country and the economy of the world as a whole. This system was to be controlled in a feudalist fashion by the central banks of the world acting in concert, by secret agreements arrived at in frequent meetings and conferences. The apex of the systems was to be the Bank for International Settlements in Basel, Switzerland, a private bank owned and controlled by the world's central banks which were themselves private corporations. Each central bank...sought to dominate its government by its ability to control Treasury loans, to manipulate foreign exchanges, to influence the level of economic activity in the country, and to influence cooperative politicians by subsequent economic rewards in the business world."

- Carroll Quigley, CFR member, mentor to Bill Clinton, from 'Tragedy And Hope'
grondilu
Legendary
*
Offline Offline

Activity: 1134


View Profile
October 25, 2010, 09:03:29 PM
 #5


By default, important data would be in ~/.local/share/bitcoin. That's really helpful because it means that simply backuping .local is enough (and you don't have to care especially about bitcoin)


It is advisable to backup the wallet.dat, yes, but using ~/.local... adds the problem of proliferation of copies of your wallet.dat, increasing the risks of a copy of it becoming available to a thief.  Currently, the wallet.dat file is not encrypted while in use, so backing up the wallet.dat file anywhere is akin to leaving your checkbook on the counter at Wal-Mart while you go out to your car. 

As far as I'm concerned, I use a ~/Private encrypted virtual directory (using ecryptfs).  My wallet.dat in ~/.bitcoin is thus a symlink to ~/Private/wallet.dat.

I would not feel comfortable adding an other level of symbolic link, so I won't use ~/.local/share for bitcoin.

But I guess if someone feels adventurous, he could try that.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!