mysql_xtrabackup.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:nc-backup-py 作者: ChinaNetCloud 项目源码 文件源码
def main():

    saveout = sys.stdout
    test=xtrabackup()
    sys.out=test.args_list.LOG

    for MY_INSTANCE_NAME in test.args_list.MY_INSTANCES.split(','):
        print "---- Processing instance: "+MY_INSTANCE_NAME+" ----"

        conf_file,credential_file=test.get_instanceinfo(MY_INSTANCE_NAME)

        user_args=test.get_user_args(credential_file)

        args=test.get_args(conf_file,test.args_list.TMP_FOLDER)

        full_stdout,full_stdrr=test.full_backup(args,user_args,test.backup_dir_full,test.date)

        owner_stdout,owner_stderr=test.change_owner(test.backup_dir_full,test.date)

        compress_stdout,compress_stderr=test.compress(test.PREFIX_BACKUP,test.SCRIPT_PREFIX,test.backup_dir_full,test.date)

    sys.stdout=saveout
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号