Skip to content

Instantly share code, notes, and snippets.

@Yetangitu
Created April 13, 2018 21:12
Show Gist options
  • Save Yetangitu/dbb624db032fc217cf97898008a27a71 to your computer and use it in GitHub Desktop.
Save Yetangitu/dbb624db032fc217cf97898008a27a71 to your computer and use it in GitHub Desktop.
script to run recollindex with correct parameters
#!/bin/sh
export XAPIAN_FLUSH_THRESHOLD=100
export RECOLL_CONFDIR=/path/to/directory/which/contains/recoll/config/file
export RECOLL_TMPDIR=$(mktemp -d /tmp/recollindex.XXXXXXXX)
recollindex > $RECOLL_CONFDIR/index.log 2>&1
rm -rf /tmp/$(basename $RECOLL_TMPDIR)
@Yetangitu
Copy link
Author

Change RECOLL_CONFDIR to point at the directory where recoll.conf lives

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment