############################################################################### # GENERAL OPTIONS: ############################################################################### DATEBIN="/bin/date" GLDIR="/jail/glftpd" CHROOT="/usr/sbin/chroot" #LOGDIR="$GLDIR/ftp-data/logs" # currently unused (log to stdout) SKIP_PATH="^NUKED-.*|^\(.*|^_archive$|^FOO$|^BAR$" CHECK_FOR="\(*M*F\ \-\ COMPLETE\ \)" MINS_OLD="10080" # releases need to be 1 week old before moving (7x24x60mins) MIN_FREE="1048576" # need 1GB+ free on MOUNT(s) before moving, 0 to disable ############################################################################### # MOUNTS: ############################################################################### # Uncomment to check if dirs/devs in MOUNTS are mounted before moving # # EXAMPLES: # - $GLDIR/site/archive # - /dev/mapper/archive2 # #CHECK_MOUNTS=1 #MOUNTS=" # /dev/mapper/site #" ############################################################################### # 0DAY SECTION: ############################################################################### # Uncomment or add vars, then add line(s) to 'MOVE' in ALL SECTIONS to enable # # EXAMPLES: # # - To move 6 month old daydirs from '/0day/12??' to '/archive/0day/2013/12', # uncomment vars ZD_MM, ZD_YY ZDARCHIVE and add this line to 'MOVE' below: # $GLDIR/site/0DAY:^${ZD_MM}[0-9][0-9]$:${ZDARCHIVE}/${ZD_YY}/${ZD_MM} # # - Or call 'date' directly and e.g. move last weeks single daydir: # $GLDIR/0day/$(date -d -7day +%m%d):$ZDARCHIVE/$(date -d -7day +%m%d) # #ZD_MM="$(date -d -6month +%m)" # 6 months ago (MM) #ZD_YY="$(date -d -6month +%Y)" # 6 months ago (YYYY) #ZDARCHIVE="$GLDIR/site/archive/0day" # target: archive dir ############################################################################### # MP3 SECTION: ############################################################################### # Uncomment to enable #MP3FMT="%Y-%m" # dated dir format: year-month ("2013-12") #MP3SRC="$GLDIR/site/mp3" # source #MP3DST="$GLDIR/site/archive/mp3" # target #MP3MONTHS="3 12" # move all daydirs that are 4-12 months old #AUDIOSORT="/bin/audiosort" ############################################################################### # MUSICVIDEOS SECTION: ############################################################################### # Uncomment to enable #MVFMT="%Y-%V" # dated dir format: year-week ("2013-52") #MVSRC="$GLDIR/site/mv" # source #MVDST="$GLDIR/site/archive/mv" # target #MVWEEKS="25 53" # move all weekdirs that are 25-53 weeks old ############################################################################### # ALL SECTIONS: ############################################################################### # Define which sections you want to move: apps, console, games, movies etc. # MOVE does not use Series/Season structure. You can however add TV if you # want to move it without using Series/Season, see EXAMPLES below # SYNTAX: SOURCE_DIR:REGEXP:TARGET_DIR # EXAMPLES: MOVE=" $GLDIR/site/apps:*:$GLDIR/site/archive/apps $GLDIR/site/divx:.*[._]G[eE][rR][mM][aA][nN][._].*:$GLDIR/site/archive/divx-de $GLDIR/site/tv:^Holby.[cC]ity[._].*:$GLDIR/site/archive/tv-uk $GLDIR/site/tv:.*-RiVER$:$GLDIR/site/archive/tv-uk $GLDIR/site/x264:.*1080[pP].*$:$GLDIR/archive/x264-1080p " # NOTE: MOVE dirs are processed first (from top to bottom) and *before* TVDIRS ############################################################################### # TV SECTION: ############################################################################### # Uncomment to enable # Source TV dir(s) for releases you want to move to Series/Season structure #TVDIRS=" #$GLDIR/site/tv #" # Target TV dir #TVARCHIVE="$GLDIR/site/archive/tv" # Uncomment to ignore MINS_OLD for TVDIRS and move 15 oldest releases instead: #NUM_DIRS_TV="15" # NOTE: I suggest you always leave MINS_OLD defined as "failsafe", # even if you use NUM_DIRS_TV instead # Optionally set this variable if your tv archive uses symlinks to multiple # "sub disks", like tur-links. E.g. your storage devices are mounted as: # /archive/tv/.1 /archive/tv/.2 /archive/tv/.3 (or .mnt1 .mnt2 .mnt3 etc) #TVARCSUBS=".1 .2 .3" # NOTE: if you're having missing or dead symlinks using "sub disks", try # running "./slv-arch.sh links" manually to fix or crontab: # 15 5 * * * /glftpd/bin/slv-arch.sh links DEL >/dev/null 2>&1