Author

Topic: Use XDG folder instead of .bitcoin (Read 1453 times)

legendary
Activity: 1288
Merit: 1080
October 25, 2010, 04: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.
legendary
Activity: 1708
Merit: 1010
October 25, 2010, 03: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. 
legendary
Activity: 1470
Merit: 1006
Bringing Legendary Har® to you since 1952
October 25, 2010, 11:16:15 AM
#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.
legendary
Activity: 1288
Merit: 1080
October 25, 2010, 10:36:39 AM
#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


sr. member
Activity: 428
Merit: 254
October 25, 2010, 10:17:00 AM
#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.
Jump to: