diff options
author | Lars Wirzenius <liw@liw.fi> | 2009-11-09 20:44:45 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2009-11-09 20:44:45 +0200 |
commit | 0461b6d6ebe0ab4346283e4f65aac48bd5523b97 (patch) | |
tree | 72686b0d518bced8fbda0c7a7b7d42240909b153 /obnam | |
parent | 9df85402b3ad7567477323d3ceb117ac547236d9 (diff) | |
download | obnam-0461b6d6ebe0ab4346283e4f65aac48bd5523b97.tar.gz |
Delete everything, start over from scratch, again.
Diffstat (limited to 'obnam')
-rwxr-xr-x | obnam | 38 |
1 files changed, 0 insertions, 38 deletions
@@ -1,38 +0,0 @@ -#!/usr/bin/python -# Copyright (C) 2008 Lars Wirzenius <liw@liw.fi> -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - - -import logging -import os -import sys -import traceback - -import obnamlib - - -if "OBNAM_PROFILE" in os.environ: - import cProfile - cProfile.run('obnamlib.BackupApplication().run()', - os.environ["OBNAM_PROFILE"]) -else: - try: - obnamlib.BackupApplication().run() - except Exception, e: - logging.debug(traceback.format_exc()) - logging.error(str(e) or repr(e)) - sys.stdout.write("ERROR: %s\n" % (str(e) or repr(e))) - sys.exit(1) |