update backup.py

backup.py can work now, even need some improve...