Jump to content

Backup script, USB memory


Eldmannen

Recommended Posts

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.

firefoxblue4yw.gif

button_b.png hydrogen2nr.png

80x15_3.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.