Plus/FindNuke

From DrFTPD

Jump to: navigation, search
DrFTPD+ Documentation
The + means better

About DrFTPD+

        Features List Edit
FindNuke, IRCUserManagement, RegexFilter, SpeedLimit, Miscellaneus, ZipScript+
Other guidance

Wikipedia:Regex

Plus / FindNuke

Contents

FindNuke

Initially committed in r1658:r1661

Description

FindNuke extends the SITE FIND ftp command with several options that make it easier to perform automated nuking with fewer false positives.

See the below usage examples for details.

Configuration

new perms.conf option:

# tmods - who not to nuke
cnuke /* !=siteop *

Usage

site find ... -action nuke <multiplier> <reason> : nuke
site find ... -empty : returns empty directories
site find ... -rname <regex> : for true regular expressions
site find ... -missing <regex> : returns directories that do not have the file(s)
site find ... -missingdir <regex> : returns directories that do not have the dir(s)

Be careful with these, always check results before performing actions!

Examples

Some ways in which you could use these options:

site find -incomplete -rname ^(?i)((?!REASON|\[NUKED\]|\[IMDB\]|sample).)*$ -action nuke 3 no.incompletes
site find -missing ^.+.sfv$ -rname ^(?i)((?!REASON|\[NUKED\]|\[IMDB\]|\[AVI\]|\[SOUND\]|sample|cover|nfofix).)*$
site find -empty -action wipe
site find -missing ^.+.nfo$
site find -missing ^.+.m3u$

Find all missing samples:

site find -missing ^(?i).+\.(avi|vob|mpe?g)$ -rname ^(?i)(samples?)$
site find -missingdir ^(?i)samples?$ -rname ^(?i)(?!\[nuked\]-|reason-|approved\.by|covers?|extras?|samples?|subs?|(?:c[ad](?:rd)?|dis[ck]|dvd)[a-f0-9]+)[^/]+$

Bugs/Known Issues

Changes Integrated

  • tommie`'s changes that we've integrated (which is all as of this writing):
    • 2006-Dec-10 09:00 PM EST: added DIZ support for -incomplete (update)
    • 2006-Nov-24 08:30 PM EST: reverted -name back to original format, new option added for true regex with -rname, and -wipe should remove nuked from the nukelog
    • 2006-Oct-25 05:00 AM EST: removed exclude options from drmods.conf, updated -name for proper regex handling
    • 2006-Sep-30 01:37 PM EST: added -missing option
    • 2006-Sep-27 09:50 AM EST: added -empty option, new -action nuke format)
  • Our additions:
    • r1810: added -missingdir option

Related Links

Personal tools
SourceForge.net Logo