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

Uploaded Python 3

File details

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

File metadata

  • Download URL: dbuper-1.0.3.tar.gz
  • Upload date:
  • Size: 6.0 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.3.tar.gz
Algorithm Hash digest
SHA256 1e7fdda18a22577a1fe6b6a8e2880e53754dbbda841ddb4587b992a3b0150087
MD5 862919d1089e1c737e13445007e63f50
BLAKE2b-256 5a326c31313726759768e02fe9b871f85915e1e46dd684b79409f56282b472df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dbuper-1.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5659d2e9cfcf412e87ecfec2a1b37b30febb883adc14bebcca0dbb50fc3ba9c8
MD5 fae3cdfbb3a0e1add4cbdf921a3bdede
BLAKE2b-256 f0aad7b73d23f653b634594ea3e72c2e307d3db4f70a2396bf59768137063d8e

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