Code Monkey home page Code Monkey logo

rt-extension-externalstorage's Introduction

NAME
    RT::Extension::ExternalStorage - Store attachments outside the database

SYNOPSIS
        Set( @Plugins, 'RT::Extension::ExternalStorage' );

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

DESCRIPTION
    By default, RT stores attachments in the database. This extension moves
    all attachments that RT does not need efficient access to (which include
    textual content and images) to outside of the database. This may either
    be on local disk, or to a cloud storage solution. This decreases the
    size of RT's database, in turn decreasing the burden of backing up RT's
    database, at the cost of adding additional locations which must be
    configured or backed up. Attachment storage paths are calculated based
    on file contents; this provides de-duplication.

    The files are initially stored in the database when RT receives them;
    this guarantees that the user does not need to wait for the file to be
    transferred to disk or to the cloud, and makes it durable to transient
    failures of cloud connectivity. The provided bin/extract-attachments
    script, to be run regularly via cron, takes care of moving attachments
    out of the database at a later time.

INSTALLATION
    perl Makefile.PL
    make
    make install
        May need root permissions

    Edit your /opt/rt4/etc/RT_SiteConfig.pm
        If you are using RT 4.2 or greater, add this line:

            Plugin('RT::Extension::ExternalStorage');

        For RT 4.0, add this line:

            Set(@Plugins, qw(RT::Extension::ExternalStorage));

        or add RT::Extension::ExternalStorage to your existing @Plugins
        line.

        You will also need to configure the %ExternalStorage option,
        depending on how and where you want your data stored; see
        "CONFIGURATION".

    Restart your webserver
        Restarting the webserver before the next step (extracting existing
        attachments) is important to ensure that files remain available as
        they are extracted.

    Extract existing attachments
        Run bin/extract-attachments; this may take some time, depending on
        the existing size of the database. This task may be safely cancelled
        and re-run to resume.

    Schedule attachments extraction
        Schedule bin/extract-attachments to run at regular intervals via
        cron. For instance, the following /etc/cron.d/rt entry will run it
        daily, which may be good to concentrate network or disk usage to
        times when RT is less in use:

            0 0 * * * root /opt/rt4/local/plugins/RT-Extension-ExternalStorage/bin/extract-attachments

CONFIGURATION
    This module comes with a number of possible backends; see the
    documentation in each for necessary configuration details:

    RT::Extension::ExternalStorage::Disk
    RT::Extension::ExternalStorage::Dropbox
    RT::Extension::ExternalStorage::AmazonS3

CAVEATS
    This extension is not currently compatibile with RT's shredder tool;
    attachments which are shredded will not be removed from external
    storage.

AUTHOR
    Best Practical Solutions, LLC <[email protected]>

BUGS
    All bugs should be reported via email to

        L<[email protected]|mailto:[email protected]>

    or via the web at

        L<rt.cpan.org|http://rt.cpan.org/Public/Dist/Display.html?Name=RT-Extension-ExternalStorage>.

COPYRIGHT
    This extension is Copyright (C) 2009-2015 Best Practical Solutions, LLC.

    This is free software, licensed under:

      The GNU General Public License, Version 2, June 1991

rt-extension-externalstorage's People

Contributors

alexmv avatar

Watchers

Petr avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.