Help - Search - Members
Full Version: Backup script, USB memory
Piriform Forums > Computer Help and Discussion > The Lounge
Eldmannen
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. smile.gif

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

CODE
@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.
mps69_1999
I've just started using portable apps and I found this which might be of interest to you
7-zip
Andavari
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.
JohnDemolition
QUOTE(mps69_1999 @ Aug 25 2006, 05:03 AM) [snapback]47209[/snapback]

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 wink.gif. there's no point for a GUI in batch scripts.
TheFiresInTheSky
could this be used the oposite way?
to back up the flash drive then store it on the pc?
1984
eldmann, i got the exact same datatraveler. smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.