Generic backup utility.
Project description
The msbackup utility performs data archiving. The main use for this is the daily execution of the utility by system scheduler (cron for example).
Usage
For reliable archiving of various data have the appropriate backend:
file - archive folder by the tar with optional compression.
subversion - scans the folder repositories of version control system Apache Subversion and archives each repository by the tar with optional compression on dump of hot copy of each repository.
mercurial - scans the folder repositories of version control system Mercurial and executes the command tar with optional compression on clone of each repository.
postgresql - scans the relational database system PostgreSQL cluster and archive each database with optional compression.
When you start utility with the –rotated parameter, from the backup folder will deleted all expired archives on the basis of configuration.
Archive files can be encrypted with the –encryptor gpg parameter.
Build
Before build Debian package install intto system project by URL https://github.com/Aleksei-Badyaev/stdeb with command
$ pip install -e git+https://github.com/Aleksei-Badyaev/stdeb.git\ @ea98ce197a6a1262e85cd441feba7201b46af865#egg=stdeb
To build Debian package run the command:
$ python setup.py --command-packages=stdeb.command bdist_deb
Testing
Dependencies of this project can be installed by the command:
$ pip install -U -e .[dev]
Tests can be launched by the command:
$ python -m unittest discover -s src/test
Test reports and coverage report can be generate using:
$ ./test.sh
After the successful execution of the script folder test-reports will contain a report (in XML format) of the tests, and in the folder coverage will be a report (in HTML format) of the code coverage.
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
Built Distribution
Hashes for msbackup-1.4.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b968b1db5c44c0f0913cf9922db5eda49aa54962f47131f635fef798d6df6014 |
|
MD5 | eb07c25e966b8d6f3859b3e78ed41961 |
|
BLAKE2b-256 | 07e023b3030a6215e5c5e6770bdc02d0610a6ba11da732abac794304df3078a2 |