Backup script

Fixed some issues