@echo off
echo BkToZips.bat compress and archives important files to zips in G:\bks 2011-11-07
rem called from bk.bat and bkq.bat
rem This creates a "hot" backup on hard disk in zip files.
rem Most of the time, when you need to restore, you don't need to read a DVD,
rem just get what you need from the zip files we create here.
rem Customise to your needs. You probably won't have nearly as many zips as I do.
pushd
rem where compressed archives are
G:
cd \bks
rem compress files to back up. Using Jet version of BackupToZip, no need to back up intelliJ config. All we need is in env\Intellij an E:\intellij project files
echo backing up config files to various zip files in G:\bks
rem java.exe -jar E:/com/mindprod/backuptozip/backuptozip.jar config.zip -q -s ...
rem Since I have jet I use the use the faster:
backuptozip.exe  config.zip -q -s "C:\Users\Roedy\.IntelliJ11" "C:\Users\roedy\AppData\Roaming\AI Internet Solutions\CSE HTML Validator\11.0" "C:\Users\roedy\AppData\Roaming\RhinoSoft.com\FTP Voyager\FTPVoyager.ftp"  C:\users\roedy\.keystore C:\Users\roedy\AppData\Local\JPSoft\TCMD.INI C:\Users\roedy\AppData\Local\OpenOffice.org\   C:\Users\roedy\Desktop\icons\ C:\Users\roedy\Desktop\stash\  C:\Windows\netload.* C:\Windows\System32\drivers\etc\hosts E:\kbbak\ C:\Users\Roedy\AppData\Roaming\gnupg\ C:\Users\Roedy\AppData\Roaming\Subversion  "F:\Program Files\Xenu\xenu.ini" "C:\Users\Roedy\AppData\Local\O&O\O&O Defrag\ocx"
if errorlevel 1 pause
rem backup pads
echo backing up pads files...
backuptozip.exe pads.zip -q -s C:\Users\roedy\AppData\Roaming\PADGen\PADGen.ini C:\Users\roedy\Documents\PADGen\canadian_mind_products\
if errorlevel 1 pause
echo backing up Topstyle...
rem backup topstyle
backuptozip.exe topstyle.zip -q -s  C:\Users\roedy\AppData\Roaming\BradSoft.com\TopStyle\4.0\
if errorlevel 1 pause
echo backing up Agent...
rem backup Agent
backuptozip.exe agent.zip -q -s   C:\Users\roedy\AppData\Roaming\Forte\Agent\
if errorlevel 1 pause
echo backing up vslick files...
backuptozip.exe vslick.zip -q -s "F:\Program Files\vslick"
if errorlevel 1 pause
echo backing up browsers files...
rem backup  FireFox, Opera 10.60
backuptozip.exe browsers.zip -q -s  C:\Users\roedy\AppData\Roaming\Mozilla\Firefox\ C:\Users\roedy\AppData\Roaming\Opera\
if errorlevel 1 pause
echo backing up thunderbird email files...
rem backup thunderbird.  Needs both local and roaming!
backuptozip.exe thunderbird.zip -q -s C:\Users\roedy\AppData\Local\Thunderbird\  C:\Users\roedy\AppData\Roaming\Thunderbird\
if errorlevel 1 pause
echo backing up docs files...
backuptozip.exe docs.zip -q -s E:\docs E:\essay E:\roedy E:\lets
if errorlevel 1 pause
E:
cd \mindprod
echo backing up website files...
rem possibilities
rem animalrights applet application bgloss book canada carol contact
rem cursor deepthoughts dropoff dvd electronic embellishment environment
rem esperanto ethics feedback font foot ggloss humanrights image include
rem javacc jgloss kjv livinglove money pad phone politics precis presentation
rem project quote religion replicator reunion rss sound utility webstart
rem except sound, images, replicator, snippets, presentations, replicator, zips, kjv, foot, video
backuptozip.exe G:\bks\website.zip -q . animalrights applet application bgloss bgloss/include book canada carol contact deepthoughts dvd electronic embellishment environment esperanto ethics  font ggloss ggloss/include humanrights include javacc jgloss jgloss/include livinglove livinglove/methods money pad phone politics politics/laser precis presentation project quote  religion reunion rss utility webstart -s feedback
if errorlevel 1 pause
E:
cd \mindprod\kjv
echo backing up kjv files...
rem leave out foot
backuptozip.exe G:\bks\kjv.zip -q . 1_Chronicles 1_Corinthians 1_John 1_Kings 1_Peter 1_Samuel 1_Thessalonians 1_Timothy 2_Chronicles 2_Corinthians 2_John 2_Kings 2_Peter 2_Samuel 2_Thessalonians 2_Timothy 3_John Acts Amos Colossians Daniel Deuteronomy Ecclesiastes Ephesians Esther Exodus Ezekiel Ezra foot Galatians Genesis Habakkuk Haggai Hebrews Hosea Isaiah James Jeremiah Job Joel John Jonah Joshua Jude Judges Lamentations Leviticus Luke Malachi Mark Matthew Micah Nahum Nehemiah Numbers Obadiah Philemon Philippians Proverbs Psalms Revelation Romans Ruth Song_of_Songs Titus Zechariah Zephaniah
if errorlevel 1 pause
G:
CD \bks
echo backing up snippets files...
backuptozip.exe snippets.zip -q  E:\mindprod\application\snippet E:\mindprod\applet\snippet E:\mindprod\bgloss\snippet E:\mindprod\jgloss\snippet E:\mindprod\project\snippet E:\mindprod\webstart\snippet E:\mindprod\feedback\unmain\snippet
if errorlevel 1 pause
echo backing up sound files...
backuptozip.exe sound.zip -q -s E:\mindprod\sound
if errorlevel 1 pause
echo backing up env files...
backuptozip.exe env.zip -q -s E:\env
if errorlevel 1 pause
echo backing up code files... (would be nice to strip *.class jet *.zip *.jar )
backuptozip.exe code.zip -q -s  E:\com
if errorlevel 1 pause
echo backing up other code files...
backuptozip.exe othercode.zip -q -s E:\ab1 E:\exper G:\sleeping  E:\hold
if errorlevel 1 pause
echo backing up intellij code files...
backuptozip.exe intellij.zip -q -s  E:\intellij
if errorlevel 1 pause
echo backing up progs files...
backuptozip.exe progs.zip -q -s E:\sys "F:\Program Files (x86)\masm" "F:\Program Files (x86)\optasm" "F:\Program Files (x86)\optlink"
if errorlevel 1 pause
echo backing up images files, including pov...
backuptozip.exe images.zip -q -s F:\spareimages E:\photos E:\mindprod\image E:\pov
if errorlevel 1 pause
echo backing up presentations files...
backuptozip.exe presentations.zip -q -s  E:\mindprod\presentation
if errorlevel 1 pause
echo backing up personal files...
backuptozip.exe personal.zip -q -s G:\addictions "F:\Program Files (x86)\Day-Timer AddressBook 2000\files" "F:\Program Files (x86)\Day-Timer AddressBook 2000\user"
if errorlevel 1 pause
rem echo backup Tomcat and PostgreSQL files...
rem backuptozip.exe tomcat.zip -q -s "F:\Program Files (x86)\Tomcat 7.0\webapps\ROOT" "E:\PostGreSQL"  "E:\mb"
if errorlevel 1 pause
echo backup fonts...
C:
cd "C:\Windows\Fonts"
backuptozip.exe G:\bks\fonts.zip -q "Bitstream Vera Sans Bold Oblique.ttf" "Bitstream Vera Sans Bold.ttf" "Bitstream Vera Sans Mono Bold Oblique.ttf" "Bitstream Vera Sans Mono Bold.ttf" "Bitstream Vera Sans Mono Oblique.ttf" "Bitstream Vera Sans Mono.ttf" "Bitstream Vera Sans Oblique.ttf" "Bitstream Vera Sans.ttf" "Bitstream Vera Serif Bold.ttf" "Bitstream Vera Serif.ttf" "DPCustomMono2.ttf" "letgothl.ttf" "LucidaBrightDemiBold.ttf" "LucidaBrightDemiItalic.ttf" "LucidaBrightItalic.ttf" "LucidaBrightRegular.ttf" "LucidaSansDemiBold.ttf" "LucidaSansRegular.ttf" "LucidaTypewriterBold.ttf" "LucidaTypewriterRegular.ttf" "MAFT___.TTF" "TIREKV_.TTF" "Tiresias Infofont Bold.TTF" "Tiresias Infofont Italic.TTF" "Tiresias Infofont.TTF" "TIRESIAS INFOFONTZ Bold.TTF" "TIRESIAS INFOFONTZ Italic.TTF" "TIRESIAS INFOFONTZ.TTF" "Tiresias LPfont bold.TTF" "Tiresias LPfont Italic.TTF" "Tiresias LPfont.TTF" "Tiresias Signfont Bold.TTF" "Tiresias Signfont Italic.TTF" "Tiresias Signfont.TTF" "TIRESIAS SIGNFONTZ Bold.TTF" "TIRESIAS SIGNFONTZ Italic.TTF" "TIRESIAS SIGNFONTZ.TTF" "TIRESIAZ.TTF" "TT7268M.ttf"
if errorlevel 1 pause
E:
cd "E:\co"
echo backup cherokee obama...
backuptozip.exe G:\bks\co.zip -q -s E:\co
if errorlevel 1 pause
rem backup each of DL subdirs to its own zip because most of the zips rarely change.
echo backing up downloaded DOS-related files...
backuptozip.exe G:\bks\dl_dos.zip -q G:\dl\dos
if errorlevel 1 pause
echo backing up downloaded drawing-tool and drawing files...
backuptozip.exe G:\bks\dl_drawing.zip -q G:\dl\drawing
if errorlevel 1 pause
echo backing up downloaded fonts files...
backuptozip.exe G:\bks\dl_fonts.zip -q G:\dl\fonts
if errorlevel 1 pause
echo backing up downloaded games files...
backuptozip.exe G:\bks\dl_games.zip -q G:\dl\games
if errorlevel 1 pause
echo backing up hardwarefiles...
backuptozip.exe G:\bks\dl_hardware.zip -q G:\dl\hardware
if errorlevel 1 pause
echo backing up downloaded homer-dixon files...
backuptozip.exe G:\bks\dl_homerdixon.zip -q G:\dl\homerdixon
if errorlevel 1 pause
echo backing up downloaded internet-related files...
backuptozip.exe G:\bks\dl_internet.zip -q G:\dl\internet
if errorlevel 1 pause
echo backing up downloaded java-related files...
backuptozip.exe G:\bks\dl_javas.zip -q G:\dl\javas
if errorlevel 1 pause
echo backing up downloaded jsp files...
backuptozip.exe G:\bks\dl_jsp.zip -q G:\dl\jsp
if errorlevel 1 pause
echo backing up downloaded ralf files...
backuptozip.exe G:\bks\dl_ralf.zip -q G:\dl\ralf
if errorlevel 1 pause
echo backing up downloaded router files...
backuptozip.exe G:\bks\dl_router.zip -q G:\dl\router
if errorlevel 1 pause
echo backing up downloaded sounds files...
backuptozip.exe G:\bks\dl_sounds.zip -q G:\dl\sounds
if errorlevel 1 pause
echo backing up downloaded source files...
backuptozip.exe G:\bks\dl_source.zip -q G:\dl\source
if errorlevel 1 pause
echo backing up downloaded ssh files...
backuptozip.exe G:\bks\dl_ssh.zip -q G:\dl\ssh
if errorlevel 1 pause
echo backing up downloaded trial files...
backuptozip.exe G:\bks\dl_trial.zip -q G:\dl\trial
if errorlevel 1 pause
echo backing up downloaded utils files...
backuptozip.exe G:\bks\dl_utils.zip -q G:\dl\utils
if errorlevel 1 pause
echo backing up downloaded w7 files...
backuptozip.exe G:\bks\dl_w7.zip -q G:\dl\w7
if errorlevel 1 pause
echo This is not part of the backup. Maintain a zip of SR scripts for website...
backuptozip.exe E:\mindprod\zips\srscripts.zip E:\env\srscripts E:\env\srfavourites
if errorlevel 1 pause
popd
rem -30-