Trims the source card (up to 2,870,513 readings/log) down to the line count you pick, then sets the ledger counter 3 ahead of the logs so the unit enters the boot-loop scan. The image comes back gzipped (tens of MB).
The card is never changed directly — you upload a copy of its data.ext3 and download a repaired one to write back. The original file on the card stays put until you replace it.