Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/benportner/pydbk

A Python tool to extract .dbk archives
https://github.com/benportner/pydbk

archive cli dbk extractor python sony

Last synced: 2 days ago
JSON representation

A Python tool to extract .dbk archives

Awesome Lists containing this project

README

        

![](https://img.shields.io/github/actions/workflow/status/BenPortner/pydbk/install-lint-test.yml?label=tests) ![](https://img.shields.io/github/actions/workflow/status/BenPortner/pydbk/release-pypi.yml?label=release) ![](https://img.shields.io/github/license/BenPortner/pydbk) ![](https://img.shields.io/pypi/pyversions/pydbk)

# Pydbk: A Python tool to extract .dbk archives

Pydbk consists of a python module `pydbk.py` and a command line tool `pydbk_cli.py`.

- [Installation](#Installation)
- [Usage](#Usage)
- [What is a .dbk file?](#what-is-a-dbk-file)

## Installation

Install using pip:

```sh
pip install pydbk
```
## Usage

Extract a .dbk archive:

```sh
pydbk path/to/file.dbk destination/dir
```

If no destination is specified, pydbk will create a directory `./extracted`:

```sh
pydbk path/to/file.dbk
```

Get help:

```sh
pydbk --help
```

```sh
usage: pydbk [-h] [-v] [-c] [-d] [-t] source [destination]

Pydbk: A Python tool to extract .dbk archives.

positional arguments:
source source file to extract files from (.dbk)
destination destination directory to extract files to

options:
-h, --help show this help message and exit
-v, --verbose verbose mode (print detailed output)
-c, --check check if .dbk archive is complete
-d, --dry-run run program without writing files to the destination
-t, --mod-time do not overwrite modification date of extracted files
```

## What is a .dbk file?

> A DBK file is a mobile phone backup file created by Sony Ericsson PC Suite, a program used to manage Sony Ericsson mobile phones. It contains multiple Zip-compression files that store various phone information such as the names and phone numbers of contacts. DBK files are used to back up phone information in the event that the phone is lost or broken. ([fileinfo.com](https://fileinfo.com/extension/dbk))