Bitcoin Forum
July 24, 2025, 08:30:59 AM *
News: Latest Bitcoin Core release: 29.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Salvagewallet in latest Bitcoin core  (Read 156 times)
morbius55 (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 109


View Profile
April 13, 2021, 07:24:09 PM
Merited by ABCbits (1)
 #1

How do you run salvagewallet in the latest version. Thanks.
NotATether
Legendary
*
Offline Offline

Activity: 2030
Merit: 8730


Search? Try talksearch.io


View Profile WWW
April 13, 2021, 07:30:44 PM
Merited by ABCbits (2)
 #2

The -salvagewallet command line option was moved into the bitcoin-wallet utility as of Bitcoin Core 0.21, and its name has changed to salvage.

Code:
bitcoin-wallet -wallet=<wallet name> salvage

██
██
██
██
██
██
██
██
██
██
██
██
██
... LIVECASINO.io    Play Live Games with up to 20% cashback!...██
██
██
██
██
██
██
██
██
██
██
██
██
morbius55 (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 109


View Profile
April 13, 2021, 07:51:30 PM
Last edit: April 13, 2021, 09:43:44 PM by morbius55
 #3

The -salvagewallet command line option was moved into the bitcoin-wallet utility as of Bitcoin Core 0.21, and its name has changed to salvage.

Code:
bitcoin-wallet -wallet=<wallet name> salvage
Thanks, how do I run that on my wallet files? My wallet files are In D:\Bitcoin, and Daemon is in the same. I have 3 wallet files with different names. Does the bitcoin-wallet offer any more tools?
nc50lc
Legendary
*
Offline Offline

Activity: 2856
Merit: 7411


Self-proclaimed Genius


View Profile
April 14, 2021, 03:02:07 AM
Merited by ABCbits (2)
 #4

If you're still using Windows7, open command prompt to Bitcoin\daemon where bitcoin-wallet.exe is located (change the directory if you're not using the default).
Code:
cd C:\Program Files\Bitcoin\daemon
For the default wallet 'wallet.dat', this command should work:
Code:
bitcoin-wallet -datadir="D:\Bitcoin" salvage
For other wallets, use NotATether's command.

Note: It will not return with a response (aside from errors), you can check the data directory and a backup of the wallet will be created upon using the command.
Does the bitcoin-wallet offer any more tools?
Use:
Code:
bitcoin-wallet --help

NotATether
Legendary
*
Offline Offline

Activity: 2030
Merit: 8730


Search? Try talksearch.io


View Profile WWW
April 14, 2021, 06:32:44 AM
 #5

Does the bitcoin-wallet offer any more tools?

Currently there's only two other commands: one to create a wallet (create) and another that lists information about a wallet (info).

██
██
██
██
██
██
██
██
██
██
██
██
██
... LIVECASINO.io    Play Live Games with up to 20% cashback!...██
██
██
██
██
██
██
██
██
██
██
██
██
DaveF
Legendary
*
Offline Offline

Activity: 3920
Merit: 6879


Wheel of Whales 🐳


View Profile WWW
April 14, 2021, 10:35:10 AM
 #6

Be sure to make a backup copy of your wallet.dat before you run it.
Yes, it's supposed to make a backup before it does anything but like anything involving money it's better to do your own backup before anything else touches the file.

-Dave

███████████▄
████████▄▄██
█████████▀█
███████████▄███████▄
█████▄█▄██████████████
████▄█▀▄░█████▄████████
████▄███░████████████▀
████░█████░█████▀▄▄▄▄▄
█████░█
██░█████████▀▀
░▄█▀
███░░▀▀▀██████
▀███████▄█▀▀▀██████▀
░░████▄▀░▀▀▀▀████▀
 

█████████████████████████
████████████▀░░░▀▀▀▀█████
█████████▀▀▀█▄░░░░░░░████
████▀▀░░░░░░░█▄░▄░░░▐████
████▌░░░░▄░░░▐████░░▐███
█████░░░▄██▄░░██▀░░░█████
█████▌░░▀██▀░░▐▌░░░▐█████
██████░░░░▀░░░░█░░░▐█████
██████▌░░░░░░░░▐█▄▄██████
███████▄░░▄▄▄████████████
█████████████████████████

█████████████████████████
████████▀▀░░░░░▀▀████████
██████░░▄██▄░▄██▄░░██████
█████░░████▀░▀████░░█████
████░░░░▀▀░░░░░▀▀░░░░████
████░░▄██░░░░░░░██▄░░████
████░░████░░░░░████░░████
█████░░▀▀░▄███▄░▀▀░░████
██████░░░░▀███▀░░░░██████
████████▄▄░░░░░▄▄████████
█████████████████████████
.
...SOL.....USDT...
...FAST PAYOUTS...
...BTC...
...TON...
morbius55 (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 109


View Profile
April 14, 2021, 04:54:58 PM
 #7

If you're still using Windows7, open command prompt to Bitcoin\daemon where bitcoin-wallet.exe is located (change the directory if you're not using the default).
Code:
cd C:\Program Files\Bitcoin\daemon
For the default wallet 'wallet.dat', this command should work:
Code:
bitcoin-wallet -datadir="D:\Bitcoin" salvage
For other wallets, use NotATether's command.

Note: It will not return with a response (aside from errors), you can check the data directory and a backup of the wallet will be created upon using the command.
Does the bitcoin-wallet offer any more tools?
Use:
Code:
bitcoin-wallet --help
Thanks for your help.
morbius55 (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 109


View Profile
April 14, 2021, 04:55:53 PM
 #8

Be sure to make a backup copy of your wallet.dat before you run it.
Yes, it's supposed to make a backup before it does anything but like anything involving money it's better to do your own backup before anything else touches the file.

-Dave

I'm only using copies, but thanks for your reply.
morbius55 (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 109


View Profile
April 14, 2021, 04:59:24 PM
 #9

Does the bitcoin-wallet offer any more tools?

Currently there's only two other commands: one to create a wallet (create) and another that lists information about a wallet (info).
Cheers again for your help.
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!