Firewall Rules Copy

How to copy all firewall rules to another Router OS

use this command:
/ip firewall export file=“filename”

Then you have all settings in a file.