Backup tool for PowerDNS database
Project description
What is this?
Backup tool for PowerDNS database.
PyPI
Deploy the pdnsbackyp
tool in your server with the pip command.
pip install pdnsbackup
After installation, you can execute the pdnsbackup
to start-it.
See config file for more options.
Docker run
sudo docker run --rm --env-file ./.env --name=pdnsbackup dmachard/pdnsbackup:latest
Environment variables
Variables | Description |
---|---|
PDNSBACKUP_DEBUG | debug mode 1 or 0 |
Variables | Description |
---|---|
PDNSBACKUP_GMYSQL_ENABLED | enable gmysql backend, default is 1 |
PDNSBACKUP_GMYSQL_HOST | mysql port, default is 127.0.0.1 |
PDNSBACKUP_GMYSQL_PORT | mysql port, default is 3306 |
PDNSBACKUP_GMYSQL_SSL | enable ssl, default is 0 |
PDNSBACKUP_GMYSQL_DBNAME | mysql database name |
PDNSBACKUP_GMYSQL_USER | mysql user |
PDNSBACKUP_GMYSQL_PASSWORD | mysql password |
Variables | Description |
---|---|
PDNSBACKUP_FILE_ENABLED | enable backup to file, defaut is 1 |
PDNSBACKUP_FILE_PATH_BIND | zone bind path |
PDNSBACKUP_FILE_PATH_OUTPUT | output folder |
Run from source
Create a .env
file to populate your variable
Create a virtualenv
python -m venv venv
source venv/bin/activate
Install requirements and run-it
python3 -m pip install -r requirements.txt
python3 -c "import pdnsbackup; pdnsbackup.run();"
Build and run from docker image
sudo docker build . --file Dockerfile -t pdnsbackup
Run tests
Run all tests
python -m unittest discover -v tests/
Run one by one
python -m unittest -v tests.test_config
python -m unittest -v tests.test_parser
python -m unittest -v tests.test_export
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pdnsbackup-0.1.1.tar.gz
(7.6 kB
view hashes)
Built Distribution
Close
Hashes for pdnsbackup-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad9c8090e8a1f28717ed832f63c65e32e9b9ff7463562ed0c84bddedbeaa8cfc |
|
MD5 | fa36cf40c1f9ba7735367d92e6610178 |
|
BLAKE2b-256 | 96ffb84c37ee73fa9b8681558ca5d4ed0f2a7994a363bab5f1ddf965030677f0 |