This add-on is intended to export a complete Acquia Search Index using command line tools
This repository contains a command line tool that can be run via any *nix-like terminal for exporting all or just one Acquia Search index attached to a subscription.
Visit https://github.com/acquia/acquia-search-service-import/releases/latest and download the latest stable version. The usage examples below assume this method of installation.
./acquia-search-service-import import ABCD-12345 "/tmp/acquia_search_export"
./acquia-search-service-import import ABCD-12345 "/tmp/as_export/ABCD-12345/ABCD-12345-1408965924.tar.gz"
./acquia-search-service-import import ILMV-27747.dev.mori `ls -t /tmp/as_export/ILMV-27747/ILMV-27747-*.tar.gz | head -1`
./acquia-search-service-import import ILMV-27747.dev.mori `ls -t /tmp/as_export/ILMV-27747/ILMV-27747-*.tar.gz | sort -r | head -1`
./acquia-search-service-import import --index ILMV-27747.dev.mori --path "/tmp/search_export/ILMV-27747"
[info] Checking if the given subscription has Acquia Search indexes...
[info] Found 9 Acquia Search indexes.
Do you want to continue? (y/n). This will DELETE all contents from the ILMV-27747.dev.mori index! ... : y
[info] Index ILMV-27747.dev.mori has 0 items in the index. Proceeding...
[info] Sent 200/4728 documents to ILMV-27747.dev.mori
[info] Sent 400/4728 documents to ILMV-27747.dev.mori
[info] Sent 600/4728 documents to ILMV-27747.dev.mori
...
[info] Sent 4728/4728 documents to ILMV-27747.dev.mori
[info] Sent 4728 documents to ILMV-27747.dev.mori
[info] Index ILMV-27747.dev.mori has 4728 items in the index.