Skip to main content

A CLI tool to manage database snapshots

Project description

Dbback

CLI Tool for clean and easy way of managing databases



The goal of this project is to ensure we can revert the problems made by an intern at a DB level like Truncate table.

The tech stack is using python as a programming language and using Click as a framework while using rich library for styling table for clean views

For ease there are mainly 3 commands being add, delete and list for all groups in the Tool which are explained below

Groups

1. Connection

The First group for estabilishing connections to the DB for esnsuring we can track the tables. This is the first step to later track and maintain the tables. Details required are
  1. Project Name for ID
  2. DB type currently MySQL
  3. Host and Port for Connections
  4. Username and Password
  5. DB Name
The commands possible are
  1. add
  2. delete
  3. list

2. Table

For adding tables to the connections that we have established already. Here we simply establish a table for storing snapshots and is a necessary step as well.The commands possible are
  1. add
  2. delete
  3. list

3. Snapshot

Finally having created a connection and listed tables, we can take snapshots and store them for later use.
  1. add
  2. list
  3. restore
A unique ID is given to each snapshot during its addition and can be visible when listed , this ID is used to restore and taken as an input.

Additional Informations

A folder is created in local C drive for storing the metadata for each user and also the snapshots taken. In further versions , we can remove the local usage and go for a cloud based approach.

Scope for Improvement

Following can be implemented in further versions
  1. More Database Options
  2. Ability to use snapshots remotely
  3. Cloud based storage of Snapshots

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

dbback-0.1.1.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dbback-0.1.1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file dbback-0.1.1.tar.gz.

File metadata

  • Download URL: dbback-0.1.1.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dbback-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0114caca55ffa1639e5910c7446d7a61f6b5b238c18278612652e9d2090c0501
MD5 21674d20f5f4308c0e807a1a04963aa2
BLAKE2b-256 42a464c0ed96dbd488b214d37f1b37b4e684e47429b2a9f4fdbfa2b9e76b7d25

See more details on using hashes here.

File details

Details for the file dbback-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: dbback-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dbback-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4de66adf48148cef2632ace5a78aba8c04240e828fe8f73fd302dcbc22ef8785
MD5 62a2ee7592dbda459c12d2f084ce3c78
BLAKE2b-256 a2a871880c4da6e40e5102768f5bc8e25514324f62137d816525d79b25687cf9

See more details on using hashes here.

Supported by

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