1. A system for resemblance compression comprising: a processor; and a memory to store instructions, which when executed by the processor, cause the processor to perform operations of resemblance compression, the operations including determining whether a logical segment that matches a current segment is stored; retrieving a closest logical segment to the current segment from a segment store; encoding the current segment based at least in part on the closest logical segment; compressing the current segment; and packing the current segment into a container to store in a container store.