manticoresoftware / manticoresearch-backup
Backup tool for Manticore Search
Installs: 10 235
Dependents: 1
Suggesters: 0
Security: 0
Stars: 3
Watchers: 7
Forks: 1
Open Issues: 8
Requires
- php: >=8.1
- manticoresoftware/telemetry: ^0.1.9
Requires (Dev)
- phpstan/phpstan: ^1.8
- phpunit/phpunit: ^9.5
- slevomat/coding-standard: ^8.5
- squizlabs/php_codesniffer: ^3.7
- dev-main
- v1.5.1
- v1.3.9
- 1.3.8.x-dev
- v1.3.8
- v1.3.5
- v1.3.3
- v1.1.7
- v1.1.5
- v1.1.3
- v1.0.11
- v1.0.9
- 1.0.8.x-dev
- v1.0.8
- v1.0.5
- v1.0.1
- 0.5.14.x-dev
- v0.5.14
- v0.5.13
- v0.5.11
- v0.5.9
- v0.5.7
- 0.5.2.x-dev
- v0.5.2
- v0.5.1
- v0.4.5
- v0.4.3
- v0.4.1
- v0.3.9
- v0.3.7
- v0.3.5
- v0.2.27
- v0.2.25
- v0.2.23
- v0.2.21
- v0.2.19
- v0.2.17
- v0.2.15
- v0.2.13
- v0.2.11
- v0.2.9
- v0.2.7
- v0.2.5
- v0.2.3
- v0.2.1
- v0.1.1
- dev-fix/index-to-table
- dev-test/fix-after-update-version-clt-0.2.3
This package is auto-updated.
Last update: 2024-10-23 08:10:50 UTC
README
How to use
Read the official documentation for all the information about using the tool.
Developer documentation
Structure
Philosophy
- Keep the tool as small and lightweight as possible with no/minimum external dependencies.
- Try to write the code so that we can use it in different OSes (Windows, Linux, and any other where PHP can be used).
- We can use external binaries like
rsync
or any others, but we should maintain the native behavior so that we can still use the script when there is no such dependency. - Tests should cover every new feature or extension to the script.
Backup structure
The directory with name backup-%date%
is created in the --backup-dir folder. The target created directory has the following structure:
Building
To build the final executable you need to to run bin/build
. The executable can be found then in the ./build
directory under build/manticore-backup
.
We recommend using manticore-executor. In this case, the script will use the custom-built PHP binary with all required extensions to run the tool. If you are adding a new functionality which requires a specific PHP module make sure you update manticore-executor as well.
The final script is a PHP Phar archive that can be run with PHP version of 8.1.11
that contains the next extensions:
- zstd
- Phar
- Posix
Developing
To develop and run the system without building process you should use bin/run
script that does all the magic.
Tests
All tests are located in the test
directory.
We use PHPUnit for testing.
There are two tests: unit tests of used components and integrated tests of the whole script behavior.
Metrics
The backup tool by default sends your anonymized metrics to Manticore metrics server. It helps maintainers a lot with improving the product. We respect your privacy and you can be sure that the metrics are anonymous and no sensitive info is sent out, but if you still want to disable the telemetry, please make sure you run the tool with the flag --disable-metric
or use the environment variable TELEMETRY=0
.
Here are all metrics that we collect: