Archive for July 11th, 2006

Windows Easy Automated Backup Batch Script

UPDATE: YAY! Everything should look normal now…
UPDATE: The formatting is all frigged up cause of the percent signs, but no time to fix it now…

So, I wrote this nifty little script that automatically tars and bzips a file on a remote (shared locally) volume (that is mounted as a mapped network drive) and names the file with the current date. The backups are stored in the shared directory, but the script doesn’t include past backup files in the archive. (Why are my backups 500mb? Ohhhhh….). It then copies the remote backup to a backups folder on my machine for extra safety. I was very proud when this worked! :-)

Just modify the file with the directories you want backed up and where and save it as a .bat file. Then double click it and voila!

So here it is, shared under GNU Open Source license or whatever:

set DATESTR=%DATE:~-10%
bsdtar -c -j -f Z:\Backups\backup_%DATESTR:/=-%.bz2 --exclude backup_* Z:\
copy Z:\Backups\backup_%DATESTR:/=-%.bz2 C:\Backups\

The script makes an archive of everything in the Z:\ drive (which is a mapped remote volume) excluding files beginning with backup_. The archive is made in the Z:\Backups directory with the name backup_mo-da-yr.bz2 where mo-da-yr is the date in the indicated format. Then the archive is copied to the C:\Backups\ folder.

Any suggestions on how to improve it, or praises for my ingenuity would be welcomed with open ears.

Timothy Bradstreet Breaking Bread with Iron Maiden

A heartwarming blog post found via Blabbermouth from artist and metalhead Timothy Bradstreet’s blog about his early years as a persecuted artist (we’ve all heard the story) complete with happy ending. Nice to hear this old tale with a metal twist!

Quote of the Day

From Democratic Senator Joseph R. Biden Jr. of Delaware regarding the administration’s military tribunal system and congress’ pending legislation on the matter:

“I find it difficult for us to buy in to the notion that let’s just trust the president’s judgment,’’ Mr. Biden said. “God love him, his judgment has been terrible.’’

(from this article in today’s New York Times)