Git Product home page Git Product logo

nnstuff's Introduction

Thracky's 'safe' backfill/import scripts

Backfill

  • These scripts are for those of us who don't have the hardware to run update_releases in a separate process while backfilling, or don't want to risk a huge postprocessing backlog.

  • The scripts will incrementally backfill one day at a time, ensuring that all releases are processed for each day of backfill.

  • update_binaries will be run every 'x' runs of update_releases in order to keep your current releases up to date while backfilling. This value is set in BINARIES_KEEPUP.

  • It will also run update_parsing, removespecial, update_cleanup, and optimise_db after each day of backfill is completed.

Versions

  • safebackfill.sh will backfill all active groups
  • safebackfillgroup.sh will backfill a single group

Usage

  • First edit the paths for PHP and Newznab, set the number of days to backfill, enter your MySQL information, and number of update_releases loops to allow before running update_binaries again.

  • For safebackfill.sh simply run the script.

  • For safebackfillgroup.sh run the script with the full group name as a parameter: ./safebackfillgroup.sh alt.binaries.teevee for example.

This script is intended to be run instead of your usual screen script until you've reached the desired level of backfill

FAQ

  • Do I need to set my backfill days for groups in the site admin? No, the script will do it for you, and you may overload the backfilling process if you set it manually.

  • Should I run this at the same time as my screen script? No, as mentioned above, this is meant to temporarily replace your screen script until you're done backfilling.

  • Does the script stop when it's done backfilling? Nope, it will keep running so you don't fall behind on current releases until you notice your backfilling is finished and switch back to your regular screen script.

  • How do I know when the script is done? You'll need to keep an eye on your active groups in Admin/View Groups to see what the "Backfill Days" value is. Once they're at the number of days you set in BACKFILL_DAYS, you're done!

Import

  • The import script is a slightly updated/modified version of the standard screen script for importing.
  • Because the new nzb-import.php allows the importing of any desired number of NZB's, you are able to set that number and the script will ensure all imported releases are processed fully before importing more.

Usage

  • First edit the paths for PHP and Newznab, set your nzb path, number of nzb's to import per run, and all the other variables.
  • Simply run the script in your screen/tmux session and let it do its thing.

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.