fix restore backup for certs and public dir