working function of download backup