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
评论列表
文章目录