Creating a snapshot of Meraki network for backup & restore

trendkill
Here to help

Creating a snapshot of Meraki network for backup & restore

Hi All, 

 

I am trying create a backup of a network with the below API . I am getting a 404. API Key, org ID & net ID are correct. 

Is this the correct API. may you please suggest. 

 

import requests
 
# Define API endpoint and parameters
headers = {
    "X-Cisco-Meraki-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json"
}
 
# Send API request
response = requests.post(url, headers=headers)
 
# Check response
if response.status_code == 201:
    print("Backup created successfully.")
    # Access the backup URL from the response
    backup_url = response.json()["url"]
    print("Backup URL:", backup_url)
else:
    print("Failed to create backup. Status code:", response.status_code)

 

6 Replies 6
Badr-eddine
Getting noticed

Hello,

 

I think this request doesn't exist in the Meraki API (https://developer.cisco.com/meraki/api-latest/). There's already a tool available for backing up and restoring networks, which can come to your rescue. You can find this tool on the DevNet Exchange Hub. Just follow this link: https://developer.cisco.com/codeexchange/github/repo/gve-sw/meraki-config-manager.

 

Please let me know if this suggestion resolves your issue!

 

Thanks , checking it now. I may have to set up Flask in our environment, i was looking for an API or maybe using mutiple API's but its fine. I ll learn new stuff. Anyways if you find something else please let me know

Yeah config manager is the way to do it 

david_n_m_bond
Building a reputation

Hmmm... my area, this.

 

Meraki backup/restore is a complex thing... Until you've tested a restore for every scenario, the backup risks being worthless.

 

For smaller networks, please ensure that you have a full backup, from which you have tested a restore.

 

There are open source libraries that will help you do this.

 

For commercial scenarios, there are backup/restore options in the Meraki Marketplace, like this one:

 

https://apps.meraki.io/en-US/apps/394857/dna-assure

Author, https://www.nuget.org/packages/Meraki.Api/

Or you can go on with:

 

https://apps.meraki.io/en-US/apps/380883/v-app-%7C-cloud-network-backup

 

A fully managed backup/restore/version control solution. 

david_n_m_bond
Building a reputation

Nice!  Are there any others out there or just these two?  Not everything will be in the Meraki Marketplace...

 

Larger Organizations should have something in place, as there's nothing built-in to Meraki Dashboard.

Author, https://www.nuget.org/packages/Meraki.Api/
Get notified when there are additional replies to this discussion.