原始文献 / 论坛帖 / Re: auto backing up of wallet.dat
Re: auto backing up of wallet.dat
Bitcointalk · 2010-08-26 00:57:40 UTC
我在另一个帖子里已经开始说了,这里再重复一遍,这个帖子似乎更切题。
主要的备份改进将是预生成的密钥池,以及加载时重新扫描、从区块历史中捞出遗漏的交易。这样一次备份就能长期有效。
我正准备发和你一样的想法,nelisky。
加一个 json-rpc 命令怎么样:锁定钱包、刷出数据、把 wallet.dat 复制到你指定的位置,然后解锁?这比密钥池方案小,也许可以先做。
复制文件最简单的可移植方法是什么?Boost 里有吗?
叫什么名字好?比如:
backupwallet <destination>
英文原文
I started posting in the other topic but I'll repeat here, this thread seems more specific to the topic.
The main backup improvement will be a pre-generated pool of keys and a rescan at load to scrape missed transactions from the block history. Then a backup will last forward for a long time.
I was starting to post the same idea you said nelisky.
How about a json-rpc command that locks the wallet, flushes it, copies wallet.dat to a location you specified, then unlocks it? That would be a smaller project than the pooled keys, so maybe it could be done first.
What's the simplest portable way to copy a file? Is there something in Boost?
What should it be named? maybe:
backupwallet <destination>
