Jump to content


Backup script, USB memory


5 replies to this topic

#1 OFFLINE   Eldmannen

    Annoyance

  • Banned
  • PipPipPipPipPip
  • 2,198 posts
  • Location:Internet
  • Interests:Free software, open-source, GNU GPL, Linux, security, encryption, privacy, anonymity.

Posted 25 August 2006 - 11:32 AM

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.



#2 OFFLINE   mps69_1999

    Advanced Member

  • Members
  • PipPipPip
  • 215 posts
  • Location:Anywhere your not

Posted 25 August 2006 - 12:03 PM

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

#3 OFFLINE   Andavari

    Captain Spectacular

  • Moderators
  • 13,327 posts
  • Gender:Male
  • Location:Shadow Moses

Posted 26 August 2006 - 03:09 AM

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.
Complexity of incoherent design.

#4 OFFLINE   JohnDemolition

    Power Member

  • Members
  • PipPipPipPip
  • 924 posts
  • Gender:Not Telling

Posted 26 August 2006 - 03:28 AM

View Postmps69_1999, on Aug 25 2006, 05:03 AM, said:

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.

#5 OFFLINE   TheFiresInTheSky

    aka "neighberaaron"

  • Members
  • PipPipPipPip
  • 1,738 posts
  • Gender:Male
  • Location:somewhere in the glove
  • Interests:computers, myspace, website building, skating, ITG, DDR, summers, hanging out at the mall.

Posted 29 August 2006 - 10:39 PM

could this be used the oposite way?
to back up the flash drive then store it on the pc?

#6 OFFLINE   1984

    CCleaner Lover

  • Members
  • PipPipPipPip
  • 1,605 posts
  • Gender:Male
  • Location:Canada

Posted 30 August 2006 - 12:33 AM

eldmann, i got the exact same datatraveler. :)