Python 数据库备份脚本(邮件通知+日志记录)
摘要:
#dbbackup.py#!/usr/bin/python #coding:utf-8 import subprocess import time import os import sys import sendEmail import getip import logging #create logger logger = logging.getLogger("dbbackup") logger.setLevel(logging.DEBUG) #create console handler and set level to error ch = logging.Strea 阅读全文
posted @ 2013-02-28 13:53 、邦 阅读(1997) 评论(0) 推荐(0) 编辑