Code Monkey home page Code Monkey logo

am-cas-snapshot's Introduction

am-cas-snapshot

This is a plugin script which allows AMANDA to back up a Cassandra Database.

Sources

Usage

This script will be called by the AMANDA plugin API, snd should not be invoked directly. The configuration file "amanda.conf" defines the input arguments in the "script-tool" and "dumptype" sections.

For example,

define script-tool script-cas-snapshot {
    comment "Execute Cassandra snapshot script"
    plugin "am-cas-snapshot"
    execute-where client
    execute-on pre-dle-backup, post-dle-backup
    property "log" "/var/log/am-cas-snapshot.log"
}

define dumptype dump-cas {
    comp-user-tar
    comment "Cassandra snapshot "
    script "script-cas-snapshot"
    auth "bsdtcp"
}

Will execute this command, as seen in the amada sendbackup log file:

    /usr/libexec/amanda/application/am-cas-snapshot am-cas-snapshot POST-DLE-BACKUP \
        --execute-where client --config DailyBackup --host example.domain.net \
        --level 0 --port 27018 --log /var/log/am-cas-snapshot.log

SUDO config

User_Alias   BACKUP  = amandabackup
Cmnd_Alias   CAS_SNAPSHOT  = /usr/bin/nodetool snapshot
Cmnd_Alias   CAS_CLEAR_SNAPSHOT = /usr/bin/nodetool clearsnapshot
BACKUP     ALL     = (ALL) NOPASSWD: CAS_SNAPSHOT,CAS_CLEAR_SNAPSHOT

am-cas-snapshot's People

Contributors

doctorogg avatar matthewparsons avatar

Watchers

 avatar  avatar

Forkers

appsumo

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.