Backup script, USB memory

Yesterday I bought a USB flash memory stick, it's have 1 gb space and USB 2.0 and did cost only 25€ or so.

The one I bought is a Kingston DataTraveler.

To have backup is very important, because you never know when the disk crash. Many people say backup is important but never bother to backup themself (me among them). But finaly I got a USB memory so I can now make backup of the most important files. :)

7-Zip comes with a command-line utility that is useful for making batch scripts with, and the .7z file format compresses really well.

I made a batch script file called backup.bat

@echo off
echo -------------
echo Backup Script
echo -------------

pause

echo Backing up Artwork
echo -----------------
“C:\Program Files\7-Zip\7z.exe” a backup-art.7z “D:\Artwork”

echo Backing up Projects
echo -----------------
“C:\Program Files\7-Zip\7z.exe” a backup-projects.7z “C:\Projects”

echo Backing up Website
echo -----------------
“C:\Program Files\7-Zip\7z.exe” a backup-web.7z “C:\Program Files\Apache\htdocs”

echo Backing up My Documents
echo -----------------
“C:\Program Files\7-Zip\7z.exe” a backup-mydoc.7z “%UserProfile%\My Documents”

echo -----------------
echo Done!

Then you open Command Prompt and run it, after that you just move the archives to the USB flash memory. It is possible to make the script move them for you if you want, using the "move" command, or to write them directly to the USB memory.

You can also password protect the archive and use AES encryption.

I've just started using portable apps and I found this which might be of interest to you

7-zip

In your backup script you can also have XCOPY or MOVE place the .7z archives onto the USB device for you automatically without any manually copying/moving.

I've just started using portable apps and I found this which might be of interest to you

7-zip

i believe that's the GUI version for it ;). there's no point for a GUI in batch scripts.

could this be used the oposite way?

to back up the flash drive then store it on the pc?

eldmann, i got the exact same datatraveler. :)