modified backup.py to be slim