qarth / slv-arch

slv-archiver - Moves releases from incoming to archive

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

slv-archiver

Move completed releases from incoming to archive

Includes extra support for TV Series, 0DAY, MP3 and MV sections

  • Moves dirs to appropriate target dir in archive:

    /apps/* -> /archive/apps

  • Creates dirs in archive for tv series:

    /tv/Series.Name.S01E02-GRP -> /archive/tv/Series/S01

  • Also Handles daydirs:

    /0day/0310 -> /archive/0day/2013-03

    /mp3/2013-03-10 -> /archive/mp3


Other features:

  • Checks diskspace before moving
  • Move releases that are x days old or oldest x dirs
  • Use regular expressions to match releases
  • Audiosorts after moving mp3
  • Supports ".1 .2 .3" symlinks to multiple TV archive disks, like tur-links

Installation

Required: awk basename date find grep touch

  1. Copy "slv-arch.sh" and "slv-arch.conf" files to /glftpd/bin
  2. Configure settings in conf file (recommended) or in script iself
  3. Follow instructions included in slv-arch.conf

Testing

To test settings run ./slv-arch.sh debug

This does not actually mkdir and mv but only shows what actions the script would have executed.

Even if there are no matches there should always be "POSTCHK" lines shown.

Scheduling

If all works fine you should setup a (daily) crontab such as:

15 2 * * * /glftpd/bin/slv-arch.sh >/dev/null 2>&1

Or, alternatively create a systemd timer instead.

About

slv-archiver - Moves releases from incoming to archive


Languages

Language:Shell 100.0%