Giter Site home page Giter Site logo

lazylogs's Introduction

Lazy log backup

I'm lazy to make backups. Logs are usually most crucial thing when investigating what went wrong. This scripts is lazy man solution to log collection.

All you need is rsync and SSH public keys set on target machines. One can easily define multiple target machines, logs and rotation intervals. Note that rotation here means changing destination folder.

Usage

This usage information might change. For up to date usage please do:

lazy.sh --help

Current options:

Usage: lazy.sh [options]
    -d|--default  Default logs
                     syslog
                     messages
                     auth
                     nginx
    -l|--log      Log file to fetch
    -s|--server   Server to connect
    -r|--rotate   Rotate interval
                     always
                     minutely
                     hourly
                     daily
                     weekly
                     monthly
    -t|--target   Target folder
                  Default: current

Examples

lazy.sh --default -s my.com -s www.other.net -s [email protected] --target /store/logs --rotate always

lazy.sh --log syslog --log auth -s my.com -s www.other.net -s [email protected] --target /store/logs --rotate minutely

License

MIT, see LICENSE

lazylogs's People

Contributors

jroivas avatar

Watchers

 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.