Skip to main content

Cisco DNA Center Backup CLI

Project description

ciscodnacbackupctl

Cisco DNA Center Backup Tool (as a CLI tool)
Helps you to manage your backups and purge previous backups and also incompatible backups (between versions)


Why?

In the current state of Cisco DNA Center, it's possible to schedule and perform backups.
But there's no automated way of purging backups and users are asked to purge backups through the Web UI ciscodnacbackupctl offers a CLI interface to handle your backups from your terminal or as a daemon/docker container

Features

  • List all backups
  • History/On-going backups
  • Delete backup
  • Purge backups (all or just incompatible ones)
  • Schedule backups
    • New Backup
    • Purge

Installation

pip install ciscodnacbackupctl

Config

ciscodnacbackupctl config --help
Usage: ciscodnacbackupctl config [OPTIONS]

Options:
  --env / --no-env
  --hostname TEXT   [required]
  --username TEXT   [required]
  --password TEXT   [required]
  --secure          Secure HTTPS towards Cisco DNA Center
  --encode          Encode Cisco DNA Center config to Base64 string
  --overwrite       Writes over the existing config for Cisco DNA Center
  --help            Show this message and exit.
ciscodnacbackupctl --help
Usage: ciscodnacbackupctl [OPTIONS] COMMAND [ARGS]...

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  config
  create
  daemon           ['start', 'stop', 'restart', 'status']
  delete
  history
  list
  progress
  purge
  schedule_backup
  schedule_purge
  whoami

Technologies & Frameworks Used

Cisco Products & Services:

  • Cisco DNA Center

Tools & Frameworks:

  • rich
  • tabulate
  • hurry
  • click
  • schedule
  • daemonocle

Daemon or Docker

This makes it possible to automatically purge old backups daily

Daemon

ciscodnacbackupctl daemon start --keep 3

Docker Support Coming soon

Authors & Maintainers

Smart people responsible for the creation and maintenance of this project:

License

This project is licensed to you under the terms of the Cisco Sample Code License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ciscodnacbackupctl-0.2.5.tar.gz (11.4 kB view hashes)

Uploaded Source

Built Distribution

ciscodnacbackupctl-0.2.5-py3-none-any.whl (12.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page