Introduction: Easy File Backup for Windows!
This is a super easy tutorial on how to backup your files on Windows. All you need is a flash drive!
I will do this with the command prompt. Every time you plug in your flash drive just give it a second and you can take it out, your files will then be backed up!
Use an old flash drive that you don't need anymore to be the ultimate backup solution!
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: First...
Open up notepad and click "Saves as..." and click all files, then save it as "backup.bat"
Step 2: The Code...
Now you need to type the following(This works with Windows vista, make your own script for XP):
copy C:\Users\%username%\Desktop\*.txt txt
copy C:\Users\%username%\Documents\*.txt txt
copy C:\Users\%username%\Desktop\*.doc docs
copy C:\Users\%username%\Documents\*.doc docs
copy C:\Users\%username%\Desktop\*.jpg images
copy C:\Users\%username%\Documents\*.jpg images
xcopy C:\Users\%username%\Pictures images /S
All @echo off does is remove unwanted things when it runs, If you want a good explanation learn batch.
The copy command is used like this:
copy [source] [destination]
here is an example:
copy C:\mystuff mystuff
That will copy it to a folder called my stuff where the batch file is.
So if the batch file is on C:\backup it will copy it to C:\backup\mystuff
The xcopy command is just an advanced copy command. It is used just like copy but when you add /S to the end it will copy all sub directories. So if I copy something from the pictures folder and inside there I have a folder called "Spring 2009" It will copy that folder too.
Next is %username% it will just get your username. So if your username is bob it is just like typing: C:\Users\bob\Pictures
The *.doc or *.txt or *.jpg is just so it will copy anything that has .whatever
If i do *.txt it will copy blah.txt hello.txt or anything with that extension
The last thing:
So now you know how to backup your own things. You can use what I typed up there to back up pictures, documents, and text files, Or make your own script to backup anything.
Step 3: Set It Up to Auto Run
To make it run right when you plug it in make a new file and put this in it:
Save it under all files and name it "autorun.inf"
Step 4: Finishing Up.
Now just make your flash drive look like mine and create the folders in the picture if you used my script.
Participated in the