Clean archive writing