Rewriting a bash script in python

Chris Jones cjns1989 at gmail.com
Tue Nov 4 22:11:37 EST 2008


I wrote a trivial backup script that does the following:

If tonight is the first day of the month:

    save last month's archive
    do a full backup of the system

else:

    save last night's differential backup
    back up all changes relative to the current month's full backup

endif

I wrote this in bash and although it's worked w/o a glitch for the last
couple of months .. I'm not comfortable with .. "the look & feel of it".

I am thinking of rewriting it in python using OOP tactics/strategy.

Please advise.

Thanks!
CJ




More information about the Python-list mailing list