The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

RT::Extension::ExternalStorage::Disk - On-disk storage of attachments

SYNOPSIS

Set(%ExternalStorage,
    Type => 'Disk',
    Path => '/opt/rt4/var/attachments',
);

DESCRIPTION

This storage option places attachments on disk under the given Path, uncompressed. The files are de-duplicated when they are saved; as such, if the same file appears in multiple transactions, only one copy will be stored on disk.

The Path must be readable by the webserver, and writable by the bin/extract-attachments script. Because the majority of the attachments are in the filesystem, a simple database backup is thus incomplete. It is extremely important that backups include the on-disk attachments directory.

Files also must not be modified or removed; doing so may cause internal inconsistency.