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
- Local Backup:
dbuper backup --config-name mydatabase --local-path /path/to/backup
- Google Drive Backup:
dbuper backup --config-name mydatabase --cloud gdrive --gdrive-folder-id your_folder_id --gdrive-config-file path_to_gdrive_config.json
- Dropbox Backup:
dbuper backup --config-name mydatabase --cloud dropbox --dropbox-token your_dropbox_token
Schedule Backups
- Local Scheduled Backup:
dbuper schedule:backup --config-name mydatabase --interval 60 --local-path /path/to/backup
- 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
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dbuper-cli-0.1.1.0.tar.gz.
File metadata
- Download URL: dbuper-cli-0.1.1.0.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d0d126d083d63ece97f6cf1bebd9d49ddbfbbc339589ca47735652ae4f1d29c
|
|
| MD5 |
caafc33924bf07969e61b20808fe0657
|
|
| BLAKE2b-256 |
efffd50a107d7863f9cc4503c3cad9b4f490c6beb9af41ada0f25cfb90b8791f
|
File details
Details for the file dbuper_cli-0.1.1.0-py3-none-any.whl.
File metadata
- Download URL: dbuper_cli-0.1.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dde31a14abc41830c4c9c27091e5eb77c279c3265f426e7655166c53b655a0b6
|
|
| MD5 |
3ed5e2aa74d6880cd9ff3ee44e305eef
|
|
| BLAKE2b-256 |
6d9bb4bf9a45ef18acb379c79a574f4985558274c1da4592a126627f6cdf9cfe
|