GeneralFor the brave alpha testers (a backup addon)

General information and discussion about TeXnicCenter
Post Reply
U-Jean
Posts: 20
Joined: Tue Sep 08, 2009 3:16 pm

For the brave alpha testers (a backup addon)

Post by U-Jean »

I have written a very small batch file which will allow you to automatically make periodic backups of all tex files in the mainfiles folder and all subfolders each time you compile. With this add-on you are enabled to revert the state of you project to any previous point in time (if you compile often). This effectively reduces the risk of using the alpha to a minimum.

You will need 7zip to be installed on your computer, and I have found the very best settings to produce very small archives. Even if you compile bigger projects over 100 times a day it should have almost no noticeable impact on your compilation time or harddrive space.

To use it extract the batch file in a folder of your choosing, and edit the batchfile in order to have the correct path to your 7zip executable. Go to Build / Define Output Profiles in Texniccenter. Choose the profile you are using and add a new postprocessor. Name it whatever you want and add the batch file as the executable. In the argumenst field you have to type "%dm" (with the quotes!!!).
Thats it! Compile your project and 7zip will even report in the build window if everything went fine. The archive-files will be stored in a new folder ("Backup") which will reside in the main-files folder. It will be sorted by date and time.

Have fun testing!
Attachments
Backup.7z
(312 Bytes) Downloaded 437 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply