Portable installation (1.45)

Under Windows, Linux (using the Recoll AppImage), or Mac OS, you can create a portable installation on a removable drive. Your data and Recoll binaries, configuration files, and index reside on the drive, allowing you to move it to another system, and use it there without installing anything.

Searching and previewing documents work out of the box. Opening files depends on whether the target system has the required application installed.

You can also update data on the volume and run an incremental indexing. While the Windows version is completely self-contained, the Linux AppImage and Mac OS bundle require helper utilities on the target system for certain file types (for example, poppler-utils for PDF indexing is not bundled in the AppImage). Realistically the AppImage and Mac OS versions are mostly useful for querying.

It is possible to install all three versions on the same drive, making it portable betweeen Linux, Windows and Mac OS. Updating on the other system type should work fine, but has seen little real world use.

In case of need, it is also possible to query the index from a normal Recoll installation: just point it to the configuration directory on the volume.

Limitations

Some of the following will possibly be fixed or mitigated in the future:

Privacy: it is possible in some cases that Recoll may create a temporary file on the target system. If the data is confidential, do not use this feature on an untrusted system.
  • A portable installation can only be created based on the Windows, AppImage, or Mac OS bundle versions of Recoll
  • For the moment, portable installations do not support customising indexing parameters to folder subtrees: all parameters must be global to the configuration.
  • This feature being very new, some other issues will probably emerge.
Using the GUI to create a portable installation

The Recoll GUI for supported platforms have an additional entry in the Tools menu for creating a portable installation: create the appropriate directory structure, copy the needed binary files and initialise the main configuration file.

Details of the volume configuration, manual creation:

The Windows binary installation directory and the AppImage are standard Recoll copies. The programs identify a portable installation using the name of the folder where they reside, and the presence of a Recoll configuration directory of a specific name, under the same parent folder:

/mount/point/
            └─ indrive/path/
                           ├─ recoll-portable/
                           ├─ recoll-portable.app/
                           ├─ recoll-appimage-portable/
                           └─ recoll-config/

The recoll-xxx directories can be placed under the volume root (no indrive/path/ part)

Simple Windows example:

E:/recoll-portable
E:/recoll-config
E:/somedatafolder

Mixed Windows + AppImage example with internal path (mounted under Linux):

/mount/point/recoll/recoll-portable
/mount/point/recoll/recoll-appimage-portable
/mount/point/recoll/recoll-config
/mount/point/yourdata

The recoll.conf configuration file inside recoll-config/ has two mandatory entries:

  • orgidxconfdir, which is set to the location of the configuration directory when the data is first indexed (e.g. if the above is the original location: orgidxconfdir = /mount/point/recoll/recoll-config). This is used to compute the path transformations when the drive is subsequently mounted elsewhere.
  • topdirs which, as usual, designates the folder(s) to be indexed. E.g.: topdirs = /mount/point/yourdata

When the recoll.conf file is created by the GUI:

  • topdirs is set to the drive root (e.g.: E:/).
  • skippedNames is set to exclude the recoll installation folder(s) from indexing.

topdirs could also include data outside the volume but, of course, this part of the index would not be portable: only search and previewing from index data would work when used in another location.

The configuration and index paths always refer to the original location. When used or updated in a different location, they are modified back and forth between the original and current mount points.