Introduction: Watch Your Back-up!

Quick question for anyone who uses a computer out there: How many of you backup your files as often as you should?
Now everyone who said they do . . . stop lying.

Second question: How many computers do you work on. I personally find myself bouncing between four: home, office, and two computers at a church I volunteer at. Now my solution for my mobility has been like many, portable hard drive, (or 'jump drive' I call it). Now this has worked great but at it basically becomes my primary drive, but as mobile as I obvioulsy am, do you think I have time to think about backing up my files? Well after physically loosing my first drive, my second drive dying, and loosing my senior project twice because of it I came up with a solution.

Well, just a few minutes and two Notepad text files solved my problems. Now yes, you can buy a fancy MS or other professionally designed program to do this, but why when you don't have to?

Step 1: File 1 - Backup

Write notepad file and copy as shown, make sure you change the C:\ to the location you want your files backed up at.

@echo off
echo -------------------
echo Removable Device Automatic Backup
echo -------------------
xcopy "*" "C:\-insert file path here-" /Y /E /R /D
echo Backup Complete!
Pause.

Save as'Backup.bat'

Step 2: File 2 - Write the Autorun

Write notepad file and copy as shown:

[autorun]
action=Backup
open=backup.bat
label=Backup
includeRuntimeComponents=True

Save as autorun.inf

Save both of these files on your own jump drive.

Step 3: The Result:

Every time you plug your drive in you should see the following menu.

Just hit OK and your jump drive files are copied to your computer’s hard drive. The first time everything will be copied, thereafter old files modified or new one added will be what is copied.

It may be simple but if you can reduce backups to one keystroke every time you plug in your jump drive at home, it’s made my day.

Comments

author
petalee made it! (author)2013-05-09

Great! Just what I need in case I lose one of my many USBs again :)

author
benny3521 made it! (author)2009-11-02

Thanks man!  this is just what i need

author
cotton made it! (author)2009-01-10

thx i needed this i mde aa program that steals the sam and system backup file and coppies then to the usb then opens saminside to crack the password lol i am selling it now thx =)

author
binnie made it! (author)2007-01-24

this is a great idea ive got no idea about bat files except when i run my java apps i get a bat file, quickly copy and paste it to another folder and it provides a link to run that program and one qst. which bit is it backing up the usb or the folder that you specify

author
strods made it! (author)strods2007-01-25

it is coping the files from the usb, and backing them up onto the pc

author
Sidney Floyd made it! (author)2007-01-03

very good idea

author
mikesty made it! (author)2006-12-28

I recommend ViceVersa Pro for a commercial solution, but simple batch tricks like this are great. Recently I just got burned, been workin' last 36 hrs to get my windows install back online. More on that later..

author
HomerjaySimpson made it! (author)2006-12-27

All good stuff (especially the autorun.inf hack) but one suggestion: Go get Robocopy (ROBust file COPY) and use it instead of Xcopy. Much better handling of syncronization, logging, includes, excludes, etc... It may take a bit of time to get the script right but it's worth it.

Find Robocopy in the (free) Server 2003 ResKit, here:
http://www.microsoft.com/downloads/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en

author
mustaphabarakat made it! (author)mustaphabarakat2006-12-28

[Removed by author]

author
mustaphabarakat made it! (author)2006-12-27

[Removed by author]

author
PetervG made it! (author)2006-12-27

Your the liar, I back up all my things on CD's twice every month or so.