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

Uploaded Python 3

File details

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

File metadata

  • Download URL: dbuper-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 d590bae576c114594e9b0ab0c2c620e9e0233ad8b1b0734cacd61382251d158b
MD5 22d3850924b01eda3890136e3b2f9162
BLAKE2b-256 3e5951ce39801d16ea506e311c637d255d40ce68ef4b62f5d430e12bfcff340f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dbuper-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a9d321f902697624b0005c06520b5e8d1a64aa771759de37ee796bb716e7a5a4
MD5 419c8c43a3a7bde3180282d018383d52
BLAKE2b-256 0ab60741dafa920af89060277fab2f2d59f16d2aa42f0042f4623176fff1139d

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