-rescan
is a command line argument that is passed to the bitcoin client after restoring wallet.dat from backup.
- Which files get recalculated?
- Which files does the rescan command read?
- Why is it a good practice to first download all the blocks, then rescan, and not the other way around? (as a comment on this answer suggestsa comment on this answer suggests)