Export, Import, and Print Cloudflare Data


Recommend Cloudflare add the following capabilities to its website:

(1) Ability to display and print a summary of client’s website (Cloudflare) information (*)

(2) Ability to export, import, and print client’s website DNS Records and Page Rules (*)

(*) Useful if on-boarding a new website or data is lost.

Looking forward to input from other Cloudflare users and Cloudflare’s client support team!


+1 to all of these.

An export and import would be extremely useful.

  1. I believe you can get a lot by API
  2. Not sure about export but I’m pretty sure you can import BIND compliant DNS zone file


@komarEX you can export a BIND file from Cloudflare as well.

There are a couple of libraries/scripts available which can be used to export settings:

https://github.com/gds-attic/cloudflare-configure/ (hasn’t been updated in a while)
https://github.com/rmg/cloudflare-backup (backup DNS)

And a good Python library if anyone is interested: https://pypi.python.org/pypi/cloudflare/1.5.1


No need to complicate things at the front-end level for those who are not programmers, coders, etc. All that is being asked is for CF to integrate the enhancements with simple buttons (export, import, and print). At the back-end level, we’ll let the CF gurus do their magic.


Fair enough. It’s a good request and I’ve passed it along to the product team. I have a habit of trying to solve the problem ‘right now’ which isn’t always the most useful response. :wink:


@cscharff: Yep. It’s tempting to do that! I do the same more often than not. Thank you.


I had a similar desire, so I wrote some PHP code that exports the “all settings” api endpoint and also lists out the firewall rules. If anyone wants to use it and doesn’t use Drupal, the main pieces are in the file chotchkie.drush.inc


Good Day, @cscharff!

What’s the latest on this? An update from your development team would be appreciated.

These features can be used now by the entire Cloudflare community.

Thank you!


Another vote for this feature.


Please suggest we have any plans to integrate in CloudFlare?


Getting bind files or DNS records are easy from Cloudflare, the APi is easy. Page rules aren’t close to easy… I would love to see a good example of using the API to export all of the page rules and then importing them back into another zone.