upload and remove old logs