Metadata-Version: 2.4
Name: grebakker
Version: 0.4.2
Summary: greyrat's backupper for hackers
Home-page: http://grebakker.readthedocs.org/
Download-URL: http://pypi.python.org/pypi/grebakker
Author: dkrajzew
Author-email: d.krajzewicz@gmail.com
License: GPL
Project-URL: Documentation, https://grebakker.readthedocs.io/
Project-URL: Source, https://github.com/dkrajzew/grebakker
Project-URL: Tracker, https://github.com/dkrajzew/grebakker/issues
Project-URL: Discussions, https://github.com/dkrajzew/grebakker/discussions
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: Other Audience
Requires-Python: >=3, <4
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: download-url
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: project-url
Dynamic: requires-python
Dynamic: summary

# grebakker

[![License: GPL](https://img.shields.io/badge/License-GPL-green.svg)](https://github.com/dkrajzew/grebakker/blob/master/LICENSE)
[![PyPI version](https://badge.fury.io/py/grebakker.svg)](https://pypi.python.org/pypi/grebakker)
![test](https://github.com/dkrajzew/grebakker/actions/workflows/test.yml/badge.svg)
[![Downloads](https://pepy.tech/badge/grebakker)](https://pepy.tech/project/grebakker)
[![Downloads](https://static.pepy.tech/badge/grebakker/week)](https://pepy.tech/project/grebakker)
[![Coverage Status](https://coveralls.io/repos/github/dkrajzew/grebakker/badge.svg?branch=main)](https://coveralls.io/github/dkrajzew/grebakker?branch=main)
[![Documentation Status](https://readthedocs.org/projects/grebakker/badge/?version=latest)](https://grebakker.readthedocs.io/en/latest/?badge=latest)
[![Dependecies](https://img.shields.io/badge/dependencies-none-green)](https://img.shields.io/badge/dependencies-none-green)


[![Donate](https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=GVQQWZKB6FDES)

#

__grebakker__ - a backup solution for hackers (just for the acronym :-) )

## Introduction

__grebakker__ is a script that backups files and folders. __grebakker__ uses json to define what should be backupped and how - copied or compressed. The json files can reference each other. __grebakker__ does not need any external applications, libraries, or modules besides plain Python.

__grebakker__ is in a very early development stage. I use it successfully, but there are different things that should be streamlined. It (currently) only supports complete backups, no incremental backups etc. **I would be glad to get any feedback on or contribution to this.**


## Usage

Generate a backup definition of what to do in json and store it in the folder as ```grebakker.json```:

```js
{
    "destination": "d/",
    "copy": [ 
        "document.pdf",
        "old_backups"
    ],
    "compress": [
        "repository",
        { "name": "current", "exclude": ["venv"] }
    ],
    "subfolders": [ "attic" ]
}
```

Then run __grebakker__:

```cmd
grebakker backup f:\backup\2025_05 d:\
```

That's all... Your files and folders are backupped to the subfolder ```d/``` of the ___destination folder___ ```f:\backup\2025_05``` - the file ```document.pdf``` and the folder ```old_backups``` are copied to the destination ```f:\backup\2025_05\d```, the folder ```repository``` and ```current``` are compressed (excluding the sub-folder ```venv``` in ```current```) and stored in ```f:\backup\2025_05\d``` as well. __grebakker__ continues with backupping using a backup definition stored in the sub-folder ```attic```.


## Documentation

__grebakker__ is meant to be run on the command line. The documentation consists of a [user manual](https://grebakker.readthedocs.io/en/latest/usage.html) and a [man-page like call documentation](https://grebakker.readthedocs.io/en/latest/cmd.html) (yet incomplete). The [glossary](https://grebakker.readthedocs.io/en/latest/glossary.html) may be of help.

If you want to contribute, you may check the [API documentation](api_grebakker.md) or visit [grebakker on github](https://github.com/dkrajzew/grebakker) where besides the code you may find the [grebakker issue tracker](https://github.com/dkrajzew/grebakker/issues) or [discussions about grebakker](https://github.com/dkrajzew/grebakker/discussions).

Additional documentation includes a page with relevant [links](https://grebakker.readthedocs.io/en/latest/links.html) or the [ChangeLog](https://grebakker.readthedocs.io/en/latest/changes.html).


## License

__grebakker__ is licensed under the [GPLv3](license.md).


## Installation

The __current version__ is [grebakker-0.4.2](https://github.com/dkrajzew/grebakker/releases/tag/0.4.2).

You may __install grebakker__ using

```console
python -m pip install grebakker
```

Or download the [latest release](https://github.com/dkrajzew/grebakker/releases/tag/0.4.2) from github. You may as well clone or download the [grebakker git repository](https://github.com/dkrajzew/grebakker.git). There is also a page about [installing grebakker](https://grebakker.readthedocs.io/en/latest/install.html) which lists further options.


## Changes

### grebakker-0.4.2 (05.07.2025)
* Documentation corrected

### Version 0.4.0 (29.06.2025)

* a maintenance version that patches the command line execution

### Version 0.2.0 (24.06.2025)

* an initial version


### Older versions

You may find the complete change log at [the grebakker documentation pages](https://grebakker.readthedocs.io/en/latest/).


## Background

I backup all my projects frequently. Being bored of doing it manually, I wrote __grebakker__ for doing it for me.


## Status &amp; Contributing

__grebakker__ is in an early development stage. I suppose I will extend it in the future, but I am not under pressure.

Let me know if you need something by [adding an issue](https://github.com/dkrajzew/grebakker/issues) or by dropping me a mail. I am very interested in opinions, ideas, etc.



