Poster of Linux kernelThe best gift for a Linux geek
BTT_XML2DB

BTT_XML2DB

Section: mod_bt Administration (8) Updated: 2006-05-20
Local index Up
 

NAME

btt_xml2db - Import infohash records from an XML document into a tracker database  

SYNOPSIS

    btt_xml2db [--master] [--verbose] backup.xml /path/to/tracker

 

DESCRIPTION

btt_xml2db reads the XML document specified on the commandline and imports any "Infohash" records found into a mod_bt database. If any of the specified infohashes already exist in the tracker database, they will be replaced. The XML document should be one that was generated with btt_db2xml.

The ``Peers'', ``Seeds'', and ``Shields'' counts from the XML document are discarded; these fields are instead set to the counts of who is actually connected to the tracker, or ``0'' if this is a new infohash.

btt_xml2db can be used to create a new tracker database, like so:

    mkdir /tmp/new_database
    btt_xml2db --master --verbose backup.xml /tmp/new_database

 

SWITCHES

--master
Connect to the database as it's master; you should use this option only if no other processes are connected to the database.
--verbose
Print the infohash string and filename of each infohash as it's being inserted into the database.
--help
Displays brief usage instructions.
 

BUGS

The path to the tracker must be an absolute path, relative paths are not permitted. This is a limitation of Berkeley DB that will be addressed in a future version.  

LICENSE

Copyright 2006 Tyler ``Crackerjack'' MacDonald <tyler@yi.org> This is free software; you may use it under the terms of the Apache License 2.0, included with the mod_bt distribution.  

SEE ALSO

btt_db2xml


 

Index

NAME
SYNOPSIS
DESCRIPTION
SWITCHES
BUGS
LICENSE
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 22:41:25 GMT, April 16, 2011