Skip to main content

Backup management for restic

Project description

Bumgr

bumgr is a Python CLI application to manage backups using restic. The name is short for "Backup Manager".

Configuration

The configuration is written in TOML and has two sections: A global section used for defining global plugins, and a backup section that configures the individual backups.

An example configuration could look something like this:

[backups.example_sftp]
repository = "sftp:my-backup-server.example.org:/restic"
source = "$HOME"  # backup the entire home directory
exclude_file = ["$HOME/.backup-excludes.txt", "$HOME/.gitignore_global"]
# Use macOS Keychain to retrieve password (see 'man 1 security', macOS only)
password_command = "security find-generic-password -a restic -s 'Restic Backup' -g -w"
# also possible:
# password_file = ".config/bumgr/password-file.txt"
[[backups.example_sftp]]
# Make sure Tailscale is connected before starting the backup
module = "bumgr.contrib.tailscale.Tailscale"
args.connected = true

[backups.s3example]
repository = "s3:my-s3-server.example.org/bucket/example/restic"
source = "/"
exclude = ["/var", "/dev"]
password_file = "/etc/bumgr/password-file-root.txt"
[backups.s3example.env]
AWS_ACCESS_KEY_ID = "mys3accesskey"
AWS_SECRET_ACCESS_KEY = "very-secret-key"

License

Bumgr is licensed under the "BSD 3-Clause License".

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

bumgr-0.1.0.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

bumgr-0.1.0-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file bumgr-0.1.0.tar.gz.

File metadata

  • Download URL: bumgr-0.1.0.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.0

File hashes

Hashes for bumgr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ed178ec7d07b7bd178129992f46c6971835505d9e7d9e0a559154778bbcacdc7
MD5 b4628577dc246b7189925091010708be
BLAKE2b-256 95d297473b39249f36d03debdb40a2ebd4462d1e44b66b46871086696a339027

See more details on using hashes here.

File details

Details for the file bumgr-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: bumgr-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.0

File hashes

Hashes for bumgr-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2fc36c7a3c2d9581b54c66c5555e4ed7c42a920be26c60d78c5d58a95ab42880
MD5 888855905ed3b77e333a8a4860d892a0
BLAKE2b-256 5c6bd201a50f1a567d760db9a99f8d898f51b2aea06c9f29e2b41b0724ab168f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page