Coder Social home page Coder Social logo

zerka30 / servarr-backup Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 31 KB

A tool to automatically create, download and then upload to S3 Bucket backups for Starrs App (e.g : Radarr, Sonarr ...)

License: MIT License

Python 98.23% Dockerfile 0.35% Shell 1.42%

servarr-backup's Introduction

๐Ÿ“ฆ Servarr Backup Tool

GitHub release (latest by date) License Issues Pull Requests

Servarr Backup

๐Ÿ“– Description

Servarr Backup Tool is a backup tool for your media applications like Sonarr, Radarr, and Prowlarr. It allows you to create, list, download, and delete backups directly from your terminal and store them on S3. We recommend storing your S3 bucket with Infomaniak for reliable and affordable cloud storage (See more here).

โœจ Features

  • ๐Ÿ”ง Configure: Initialize and display the configuration.
  • ๐Ÿ“ฆ Create: Create a backup for your Servarr applications.
  • ๐Ÿ“‹ List: List available backups on S3.
  • ๐Ÿ—‘ Delete: Delete specific backups on S3.

๐Ÿš€ Installation

Prerequisites

  • Python 3.6 or higher
  • pip

Install via pip

You can install the tool directly from GitHub:

pip install git+https://github.com/Zerka30/servarr-backup.git

Installation from source

  1. Clone the repository:

    git clone https://github.com/Zerka30/servarr-backup.git
    cd servarr-backup
  2. Install the dependencies:

    pip install .
  3. Add ~/.local/bin to your PATH if it's not already there:

    export PATH="$HOME/.local/bin:$PATH"
    source ~/.bashrc  # or source ~/.zshrc for zsh users

๐Ÿ“ Usage

Commands

Configuration

  • Initialize configuration:

    servarr config init
  • Show configuration:

    servarr config show

Backups

  • Create a backup:

    servarr backup create [servertype]

    Example for prowlarr:

    servarr backup create prowlarr
  • List backups:

    servarr backup ls [servertype]

    Example for prowlarr:

    servarr backup ls prowlarr
  • Delete a backup:

    servarr backup delete [servertype] [backup_name]

    Example for prowlarr:

    servarr backup delete prowlarr prowlarr_backup_v1.18.0.4543_2024.06.22_17.28.57.zip

๐Ÿ›  Configuration

The configuration is located in the config.json file in the ~/.config/servarr directory. This file contains the necessary information to access your Servarr applications and your S3 bucket.

Example config.json

{
    "starrs": {
        "lidarr": {
            "url": "",
            "api_key": ""
        },
        "radarr": {
            "url": "",
            "api_key": ""
        },
        "readarr": {
            "url": "",
            "api_key": ""
        },
        "sonarr": {
            "url": "",
            "api_key": ""
        },
        "prowlarr": {
            "url": "",
            "api_key": ""
        }
    },
    "backup": {
        "s3": {
            "endpoint": "",
            "bucket": "servarr",
            "key": {
                "access": "",
                "secret": ""
            }
        }
    }
}

๐Ÿ“„ License

This project is licensed under the MIT License. See the LICENSE file for details.

๐Ÿค Contributing

Contributions are welcome! Please see CONTRIBUTING.md for more information.

servarr-backup's People

Contributors

zerka30 avatar

Stargazers

Robinho avatar

Watchers

 avatar

servarr-backup's Issues

โœจ (Feat): Add a purge system

If we perform daily backups, our system will quickly fill up. It would be useful to have a configurable retention system and an additional command that would delete all files with a date greater than the configured retention.

โœจ (Feat): Manage multiple instance

Some users will deploy several instances of the same type (e.g. Sonarr) for different reasons. Today, servarr doesn't handle this frequent use case. So we'd like to modify the configuration file and the way it works to take this use case into account.

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.