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
Required: awk basename date find grep touch
- Copy "slv-arch.sh" and "slv-arch.conf" files to /glftpd/bin
- Configure settings in conf file (recommended) or in script iself
- Follow instructions included in slv-arch.conf
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.
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.