Improved backup script