Skip to main content

Program to take backups for the DDMail project.

Project description

What is ddmail_backup_taker

Application to handle backups for the DDMail project.

Features

  • Backups of folders/files and mariadb databases.
  • Storing backups in encrypted form "at rest" using OpenPGP.
  • Sending backups offsite using ddmail_backup_receiver.

What is DDMail

DDMail is a e-mail system/service that prioritizes security. A current production example can be found at www.ddmail.se

Operating system

Developt for and tested on debian 12.

Installing using pip

pip install ddmail-backup-taker

Building and installing from source using hatchling.

Step 1: clone github repo
git clone https://github.com/drzobin/ddmail_backup_taker [code path]
cd [code path]

Step 2: Setup python virtual environments
python -m venv [venv path]
source [venv path]/bin/activate

Step 3: Install package and required dependencies
pip install -e .[dev]

Step 4: Build package
python -m pip install --upgrade build
python -m build

Packages is now located under dist folder

Step 5: Install package
pip install dist/[package name].whl

Running

source [ddmail_backup_taker venv]/bin/activate
ddmail_backup_taker --config-file [config file path]

Testing

cd [code path]
pytest --cov=ddmail_backup_taker tests/ --config=[config file path]

Coding

Follow PEP8 and PEP257. Use ruff for linting. Strive for 100% test coverage.

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

ddmail_backup_taker-0.0.1.tar.gz (31.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ddmail_backup_taker-0.0.1-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

Details for the file ddmail_backup_taker-0.0.1.tar.gz.

File metadata

  • Download URL: ddmail_backup_taker-0.0.1.tar.gz
  • Upload date:
  • Size: 31.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for ddmail_backup_taker-0.0.1.tar.gz
Algorithm Hash digest
SHA256 93e704b8eb4bbff61ad0b05874b79dfb7f4c66c3f0f5b1613d5b79dd56b3e66d
MD5 b2a0e767cbc07f636d217dadaf682a0a
BLAKE2b-256 5e61e9925bc3149f9e7213c88479b0e89556f7534c27e1e1d4deabfe98ce948c

See more details on using hashes here.

File details

Details for the file ddmail_backup_taker-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ddmail_backup_taker-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f6b3289eaa7f78faafd34496accd0256030062bc1ce7bf339cbb9e58532aab04
MD5 959289babe3a08e0ecfd91602e3d4fbc
BLAKE2b-256 b7b75081d703cd7c30245d3887def3cce579589085c517be5532a52778e303d8

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