I had it. I know I did. Now I can’t find it. My precious little 8 GB thumb drive that I kept personal information, portable applications, and associated “stuff” on has gone on walkabout. Now, I’m not worried so much about the personal info since everything was encrypted on the drive (everything of importance that is) but just the raw inconvenience of not having it is bugging me. Luckily a while ago I started backing up the contents of the drive on a regular basis. I’ll explain how…but you Mac users are on your own since my process only works on a PC.
The solution was simple enough. I wrote a batch file (oh take me back to the good old days) that would copy anything that had changed on the drive to my hard drive with a single command. Here’s the contents of the batch file (ironically called flashback.bat):
xcopy f:\*.* c:\data\flashback\ /e /y
Since F: is the drive letter my flash drive is always assigned to when I plug it into the computer it’s easy to designate the batch file to copy all the contents of the drive. The cool parts come from the switches at the end.
/e - copies all the directories and subdirectories including the empty ones
/y - suppresses prompting to confirm you want to overwrite an existing destination file
These two switches are enough to do a complete automated backup by just running the batch file. If you want a smarter file add the following one:
/M - copies only those files with the archive attribute set and turns the archive attribute off after copying
This way only those files who have been modified since your last backup will be copied, making it process much faster.
No matter how you do it, get into the habit of backing up your portable drives in case they get lost, stolen, consumed by a canine, etc. You can never be too careful.
Tags: backup, thumb drive, usb, data, portable