Metadata-Version: 2.1
Name: cie-restore
Version: 0.4.0
Summary: 
Home-page: https://gitlab.com/coopiteasy/cie-restore
License: AGPL-3.0-or-later
Author: Carmen Bianca BAKKER
Author-email: carmen@coopiteasy.be
Maintainer: Coop IT Easy SC
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Project-URL: Repository, https://gitlab.com/coopiteasy/cie-restore
Description-Content-Type: text/markdown

# cie_restore

A module in four parts (and with four corresponding scripts):

- `cie_download_archive`/`download` to download archives from the Borg server.
- `cie_restore_db`/`db` to restore a database using `pg_restore`.
- `cie_restore_fs`/`fs` to copy an Odoo filestore into the correct place.
- `cie_download_restore`/`all` to do all of the above operations in succession.

There is some repetition involved (in the argparse parsers and in the main
functions) to make these four components work independently of each other, but
the repetition is reduced to a minimum.

## Usage tip

Set the `BORG_PASSPHRASE` environment variable to a correct passphrase before
running the download scripts.

## Roadmap

The module does very minimal error handling. If you did something wrong (e.g.
you gave a path where a database name was expected), you will probably get an
error, but the error may not be entirely clear to you.

