You can export rules by two ways. Using CLI or via API. Look at the link given below, will be helpful to you.
Thanks!!