Save config before format