modified backup.py