Skip to main content

A tool for automated database backups and scheduling.

Project description

dbuper

Introduction

dbuper is a database backup tool designed for seamless, automated backups with support for multiple storage options, including local directories, Google Drive, and Dropbox. It provides a straightforward command-line interface for managing backups, scheduling, and configuration, allowing you to set up regular backups and easily retrieve stored backups when needed.

Prerequisites

To use dbuper, ensure you have:

  • Python 3.8+ installed on your system.
  • pip or pipx for installation.
  • Database Client Tools like mysqldump (for MySQL).
  • Cloud SDKs (if using cloud storage), such as Google Drive API credentials or Dropbox SDK, configured for seamless integration.

Installation

You can install dbuper globally via pip or pipx:

Using pip (Recommended for Virtual Environments)

pip install dbuper

Using pipx (Recommended for Global Installation)

pip install pipx
pipx install dbuper

To verify the installation, run:

dbuper --version

Usage

Configuration

Set up a database configuration with dbuper by specifying the required connection details. This configuration makes it easier to reuse and manage multiple backup sources.

dbuper register --name mydatabase --host localhost --user dbuser --password dbpass

List Configurations

View all registered database configurations to confirm your setup:

dbuper list

Backup

  1. Local Backup:
dbuper backup --config-name mydatabase --local-path /path/to/backup
  1. Google Drive Backup:
dbuper backup --config-name mydatabase --cloud gdrive --gdrive-folder-id your_folder_id --gdrive-config-file path_to_gdrive_config.json
  1. Dropbox Backup:
dbuper backup --config-name mydatabase --cloud dropbox --dropbox-token your_dropbox_token

Schedule Backups

  1. Local Scheduled Backup:
dbuper schedule:backup --config-name mydatabase --interval 60 --local-path /path/to/backup
  1. Google Drive Scheduled Backup:
dbuper schedule:backup --config-name mydatabase --interval 60 --cloud gdrive --gdrive-folder-id your_folder_id --gdrive-config-file path_to_gdrive_config.json
  1. Dropbox Scheduled Backup:
dbuper schedule:backup --config-name mydatabase --interval 60 --cloud dropbox --dropbox-token your_dropbox_token

List Schedules

To view all active backup schedules, use:

dbuper schedule:list

Version

Check the installed version of dbuper:

dbuper --version

This outline provides a concise and clear guide to getting started with dbuper, covering all essential commands for setup and use. Let me know if you’d like more details on any section!

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

dbuper-1.0.2.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

dbuper-1.0.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file dbuper-1.0.2.tar.gz.

File metadata

  • Download URL: dbuper-1.0.2.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.18

File hashes

Hashes for dbuper-1.0.2.tar.gz
Algorithm Hash digest
SHA256 f39919e05fb6d5f04da628d121efdedbcc5d2d3ad2cb3341fac4a317a47cebf4
MD5 41dd628dcaf23ba681892d9c98eddf6d
BLAKE2b-256 5faf7cbd71e825c464a2cd7ad90f226a41fe4632a7650e0f0b026b57abc67f3b

See more details on using hashes here.

File details

Details for the file dbuper-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: dbuper-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.18

File hashes

Hashes for dbuper-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 87771b63dd55087093c61375c511ecdd0d9d3a1add6897b07f005ead6df33973
MD5 b00392e1620d5af1533d64f1a7c78ce4
BLAKE2b-256 f635dd3514b253f221751afaf5437a993b71ab2cc1a0fddabf1693ac7d60b26c

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