Skip to main content

A tool for automated database backups and scheduling.

Project description

dbuper

Getting Started

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.0.tar.gz (6.4 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.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dbuper-1.0.0.tar.gz
  • Upload date:
  • Size: 6.4 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.0.tar.gz
Algorithm Hash digest
SHA256 efa9e087628010c2345a2e3c17d66d6880b208e33c1435ddf8605311e09a8125
MD5 22024dba572f8064d63027825a1d8348
BLAKE2b-256 cafe6bf43fad3e3ddb7c0523d9854ba448445909fe1cb4041b7771f1dbb4b798

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dbuper-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 249ebb1583acca89e38f14fd36405a26c6ce56b198346758bb9695ba32dbf76b
MD5 3557e8402ae381d4a24e7ae42d13f7d7
BLAKE2b-256 b9c0b8541cfe7aa219c81789a28d00e9b3d50fdb3d4077450bea3c5b5423155a

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