Scripting FTW!

When you are busy creating your thesis, it is vital to have at least one "offline" backup, and preferable more on different locations.

I’m already putting in several extra methods of making sure my data will be available, no matter what.
The first line of defense would be having a SVN-repository enabling me to have a versioning-system for all documents. This way I could easily revert to a previous version of a document, without having to make copies of the difeerent versions. This is all done by the SVN-server, running locally.
Although SVN enables me to completely recreate all files in the folder "MSC", the versioning doesn’t protect me against data-loss in the "D:\SVN\" folder. Here all SVN-information is stored and when this is lost, all is lost.

This is where my second line of defense comes in:
As this script is originally written for a *nix-system, it has some hiccups when ran on a Windows machine. I’ve been debugging an hour or so to tackle the problem of reoccurring errors telling me the destination-folder for the backups isn’t write-enabled, or other fatal messages. I finally solved it, and will post the complete script if needed.

In short:

[source:python]# Global Settings

# Path to svnlook utility
svnlook = “svnlook.exe”

# Path to svnadmin utility
svnadmin = “C:/Program Files/Subversion/bin/svnadmin”[/source]

2 thoughts on “Scripting FTW!”

  1. Maarten Tijhof – Localhost – A long time tinkerer, I'm now seasoned in the art of integration where most of my work has been completed with Oracle middleware. Also, I'm an avid photographer and badminton player and very much like to travel the world!
    Maarten says:

    No, I’m not creating scripts, I’m only adapting them (or it in my case) to work properly on my laptop.

    Am I mistaken if I say *you* are scripting Python? (And on a *nix-system?)

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.