Improved backup.py