Author

Topic: My Wallet backup to USB drive script (Read 900 times)

member
Activity: 112
Merit: 10
February 16, 2014, 10:21:23 AM
#4
better do some than nothing
newbie
Activity: 26
Merit: 0
February 16, 2014, 02:16:40 AM
#3
I can't say that it's the best method for anyone. But some backup is better than none.


full member
Activity: 196
Merit: 100
February 15, 2014, 10:12:15 PM
#2
Because a USB stick is a good backup medium?  Angry
newbie
Activity: 26
Merit: 0
February 15, 2014, 03:12:10 PM
#1
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 +)
Jump to: