Skip to content

silv3rr/slv-arch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages