Bitcoin Forum
March 19, 2024, 02:14:33 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Use XDG folder instead of .bitcoin  (Read 1410 times)
ploum (OP)
Sr. Member
****
Offline Offline

Activity: 428
Merit: 253



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.

1710814473
Hero Member
*
Offline Offline

Posts: 1710814473

View Profile Personal Message (Offline)

Ignore
1710814473
Reply with quote  #2

1710814473
Report to moderator
"With e-currency based on cryptographic proof, without the need to trust a third party middleman, money can be secure and transactions effortless." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1710814473
Hero Member
*
Offline Offline

Posts: 1710814473

View Profile Personal Message (Offline)

Ignore
1710814473
Reply with quote  #2

1710814473
Report to moderator
1710814473
Hero Member
*
Offline Offline

Posts: 1710814473

View Profile Personal Message (Offline)

Ignore
1710814473
Reply with quote  #2

1710814473
Report to moderator
grondilu
Legendary
*
Offline Offline

Activity: 1288
Merit: 1076


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
Merit: 1005


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: 1708
Merit: 1007



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: 1288
Merit: 1076


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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!