indexbackup
v0.1.1
Published
Manticore Search physical backup utility
Downloads
3
Maintainers
Readme
Manticore Search physical backup utility
Manticore Search index dump utility
WARNING! Early stage of development - working with Manticore > 5.0.3
Always check the result of creating a backup
Quick start
To work correctly, the script must be run with sudo or as a root user
yarn global add indexbackup
Create physical backup
Checking the Availability of Index Files
sudo indexbackup --dry-run index_name
Locally
sudo indexbackup index_name > backup.tar.gz
AWS S3
Backup all indexes
sudo indexbackup --all | aws s3 cp - s3://buket-name/backup.tar.gz
Restore
# cd to manticore data dir
cd /var/lib/manticore
# stop manticore
systemctl stop manticore
# get data from aws s3 and unpack
aws s3 cp s3://buket-name/backup.tar.gz - | tar -C . -xzf
# start manticore
systemctl start manticore
# check result
mysql -P9306
Options
indexbackup --help
- --all - backup of all indexes + manticore.json if the utility can find it
- -h/--host - specify host (default: 127.0.0.1)
- -P/--port - specify port (default: 9306)
- --index=index1,index2 - specify indexes
- --type=rt index types
- --add-config Backup manticore.json if the utility can find it,
- Or you can specify the data directory --data-dir=/var/lib/manticore
Check version
indexbackup -v