Bitcoin Forum

Other => Beginners & Help => Topic started by: nxtar on February 15, 2014, 07:12:10 PM



Title: My Wallet backup to USB drive script
Post by: nxtar on February 15, 2014, 07:12:10 PM
I have been playing with several different coins. Seems there are a dozen new ones every day.

To backup my wallets I could go to every single %APPDATA%\somecoin folder and save the wallet.dat or launch every wallet and click backup.

I decided instead of spending several minutes I only wanted to spend 1 minute backing up my wallets to a USB drive so I wrote a little batch file.

I welcome comments and improvements.

Code:
@echo off

cd /d %~dp0

mkdir %COMPUTERNAME%_WALLETS

ROBOCOPY %APPDATA% %COMPUTERNAME%_WALLETS wallet.dat /S /TEE /LOG:%COMPUTERNAME%-LastBackup.txt

Instructions:
Save as BackupWallets.cmd (or whatever you'd like) on the USB drive you want to use for backup.
Double click the new cmd

Features:
Supports backup of multiple wallets from multiple computers on the same USB (creates a folder for wallets from each computer)
Keeps a log of the last backup computername-lastbackup.txt

Requires:
ROBOCOPY (part of Windows 7 +)


Title: Re: My Wallet backup to USB drive script
Post by: Colin Miner on February 16, 2014, 02:12:15 AM
Because a USB stick is a good backup medium?  >:(


Title: Re: My Wallet backup to USB drive script
Post by: nxtar on February 16, 2014, 06:16:40 AM
I can't say that it's the best method for anyone. But some backup is better than none.




Title: Re: My Wallet backup to USB drive script
Post by: InCoinsITrust on February 16, 2014, 02:21:23 PM
better do some than nothing