Bitcointalk · auto backing up of wallet.dat

中本聪,2010 年 8 月 26 日

SN-2608 已核对来源,附原文与上下文。

阅读语言
中文译文

我本来在另一个主题里发,这里再重复一遍,这个主题看起来更切题。

备份的主要改进会是预生成的密钥池,以及加载时重新扫描、从区块历史里捞出被漏掉的交易。那样一次备份就能管用很久。

我正准备发和你一样的想法,nelisky。

加一个 json-rpc 命令如何:锁定钱包、刷盘、把 wallet.dat 拷贝到你指定的位置,然后解锁?这比密钥池工程量小,兴许可以先做。

拷贝文件最简单的可移植方法是什么?Boost 里有现成的吗?

该叫什么名字?兴许: backupwallet

ORIGINAL · 英文原文
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>

来源
Bitcointalk 原始链接 ↗ 记录编号 SN-2608