{"id":19873067,"url":"https://github.com/checkpointsw/exportimportpolicypackage","last_synced_at":"2025-05-02T09:31:32.281Z","repository":{"id":26912145,"uuid":"101551840","full_name":"CheckPointSW/ExportImportPolicyPackage","owner":"CheckPointSW","description":"Check Point ExportImportPolicyPackage tool enables you to export a policy package from a Management database to a .tar.gz file, which can then be imported into any other Management database. The tool is supported for version R80.10 and above.","archived":false,"fork":false,"pushed_at":"2025-04-21T07:24:32.000Z","size":249,"stargazers_count":61,"open_issues_count":8,"forks_count":38,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-04-21T08:29:16.707Z","etag":null,"topics":["management-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CheckPointSW.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-08-27T12:48:01.000Z","updated_at":"2025-04-21T07:21:10.000Z","dependencies_parsed_at":"2024-04-15T16:04:54.131Z","dependency_job_id":"2da68526-6ddc-4421-af66-aef8a7362da9","html_url":"https://github.com/CheckPointSW/ExportImportPolicyPackage","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheckPointSW%2FExportImportPolicyPackage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheckPointSW%2FExportImportPolicyPackage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheckPointSW%2FExportImportPolicyPackage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheckPointSW%2FExportImportPolicyPackage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CheckPointSW","download_url":"https://codeload.github.com/CheckPointSW/ExportImportPolicyPackage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252015835,"owners_count":21680831,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["management-api"],"created_at":"2024-11-12T16:17:41.726Z","updated_at":"2025-05-02T09:31:31.912Z","avatar_url":"https://github.com/CheckPointSW.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ExportImportPolicyPackage\r\nCheck Point ExportImportPolicyPackage tool enables you to export a policy package from a Management database to a .tar.gz file, which can then be imported into any other Management database. The tool is supported for version R80.10 and above.\r\n\r\nThis tool can be used for backups, database transfers, testing, and more.\r\n\r\n#### In the case you are exporting a policy package from a CMA, please verify that a global policy was NOT assigned to that CMA. The tool doesn't support exporting a policy with global policy assigned!\r\n\r\n## Description\r\nThis tool enables you to export a policy package (Access Policy, Threat Policy or both) from a Management database into a .tar.gz file.\r\n\r\n#### Release Notes:\r\n\r\n* There are some types of objects that the script might not be able to export. In such a case, an appropriate dummy object will be exported instead, and a message will be logged into the log files to notify you of this. In the Check Point SmartConsole you can easily replace each of these objects by searching \"export_error\" in the search field, see where each object is used, create the necessary object manually, then replace it.\r\n\r\n* Processing of Data Center Object types - before importing to the destination Management database, you must manually create a Data Center object using the exact same name as in the source Management database, and ensure connectivity.\r\n\r\n## Instructions\r\nClone the repository with this command:\r\n```git\r\ngit clone https://github.com/CheckPoint-APIs-Team/ExportImportPolicyPackage\r\n```\r\nor by clicking the Download ZIP button. \r\n\r\nDownload and install the [Check Point API Python SDK](https://github.com/CheckPointSW/cp_mgmt_api_python_sdk) \r\nrepository, follow the instructions in the SDK repository.\r\n\r\nTo export a package, run the import_export_package.py script. An interactive menu will guide you the rest of the way. Command line flags may also be set in order to skip some or all of the menu.\r\n\r\n#### A lot more details can of course be accessed with the '-h' option. This option also prints the current version of the tool.\r\n\r\n## Development Environment\r\nThe tool is developed using Python language version 2.7.9 and [Check Point API Python SDK.](https://github.com/CheckPoint-APIs-Team/cpapi-python-sdk)\r\nFrom version 5.0 the tool is developed using Python language version 3.7.\r\n\r\n## Requirements\r\nFrom version 5.0 the min Python language version required is 3.7.\r\nLast release to support Python language version 2.7.9 is v4.2.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheckpointsw%2Fexportimportpolicypackage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcheckpointsw%2Fexportimportpolicypackage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheckpointsw%2Fexportimportpolicypackage/lists"}