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.
11 Comments
10 years ago on Introduction
Great! Just what I need in case I lose one of my many USBs again :)
13 years ago on Introduction
Thanks man! this is just what i need
14 years ago on Introduction
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 =)
16 years ago
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
Reply 16 years ago
it is coping the files from the usb, and backing them up onto the pc
16 years ago
very good idea
16 years ago
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..
16 years ago
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
Reply 16 years ago
[Removed by author]
16 years ago
[Removed by author]
16 years ago
Your the liar, I back up all my things on CD's twice every month or so.