You can export the rules using appcmd, eg
appcmd list config -section:system.webServer/rewrite/globalRules -xml > file.xml
or
appcmd list config "My Site/My App" -section:system.webServer/rewrite/rules -xml > file.xml
and you can then import them using appcmd like below
appcmd set config -in < file.xml