The uber geeks

One of my first batch files helped me to back up regularly

Written by Colin Devroe on Monday, December 5th, 2005 at 5:35 am. Colin is the founder of ChanceCube and the Community Evangelist for Viddler.

I remember writing tons of batch files to easily concatenate hundreds of text files into larger text files before using DTS to import them into SQL. We used these batch files for email campaigns, data importing, etc.

One of my very first batch files was an extremely simple back-up “utility” which backed up my working directories via xcopy. I could never remember to back up on time, and I hated every piece of backup software we had in-house so I used task scheduler to fire this batch file every single day.

@ECHO OFF

ECHO           COPYRIGHT COLIN DEVROE
ECHO.

ECHO  Backing up your vital data.....
ECHO.
C:
xcopy C:ProjectsFlash F:backupprojectsflash /e /y /w /i
ECHO  Scripts Folder
ECHO.
xcopy C:ProjectsScripts F:backupprojectsscripts /e /y /i
ECHO  Mics_Pictures
ECHO.
xcopy C:ProjectsMics_pictures F:backupprojectsmics_pictures /e /y /i
ECHO Miscellanious
ECHO.
xcopy C:Projectsmiscellanious F:backupprojectsmiscellanious /e /y /i
ECHO.
ECHO MyDocuments
C:
xcopy C:\"My Documents\" F:backupprojectsmydocuments /e /y /i
ECHO.
ECHO Finished Backing Up - FLASH,SCRIPTS,MICS_PICTURES,MISCELLANIOUS,MYDOCUMENTS
ECHO.
ECHO  You may now close this window
ECHO.

I left in the misspelling of miscellaneous, I have no shame. Again, it is very simple, but it bridged me into using batch files to do simple, yet tedious tasks quickly and easily.

Previous and next posts

« Unmounting a drive on Mac OS X causes a stall in Quicksilver

Delicious Library 2.0 wish list »

Reader feedback

  1. Gravatar

    kissimmee hotels

    Hewett squash optimal Delilah sorcerer fragrant Berlinize daughter baltimore hotels http://baltimore-hotels.hotels-fun.com/

    kissimmee hotels on May 21st, 2006 6:39 pm

  2. Gravatar

    Dave

    Interesting topic… I’m working in this industry myself and I don’t agree about this in 100%, but I added your page to my bookmarks and hope to see more interesting articles in the future

    W Hotels on August 27th, 2006 5:27 am

Leave feedback

(required)

(required)

Note: Comments are heavily moderated. If the comment does not add to the above discussion, it will not be approved.

RSS feed for comments on this post. TrackBack URI

Related sites

Recent features

Song of the week

Sara Bareilles - Between the Lines
Sara Bareilles' "Between the Lines" is the Song of the Week for April 20 to 26.

The Deal Log