#!/usr/bin/env python
#-*- coding:UTF-8 -*-
"""
@Item : database Backup
@Author : Villiam Sheng
@Date : 2012-08-13
@Funtion:
"""
import os,sys,time,re,socket,threading,json,base64,traceback,ConfigParser,fcntl,struct
from rsync_log import rsync_log
from rsync_post import rsync_post
from statvfs import F_BLOCKS,F_BAVAIL,F_BSIZE
pcg = 0
""" 生成斐波那契数列"""
lists = []
a,b = 0,1
while b <= 365:
a,b = b ,a+b
lists.append(b)
class rsync_thread(threading.Thread):
def __init__(self,path):
threading.Thread.__init__(self)
self.log = rsync_log()
self.path = path
""" 计算当前磁盘的使用百分比"""
def disk(self):
try: