The FTP Indexer's Administration Guide

FTP Indexer v. 2.0
Doc V. 1.0
Doc Modified Date: 01.29.2003

TOC
I. Database Backup
II. Removing Unwanted Files
III. Modifying FTP Sites

Section I: Database Backup
Backing up the database through the web based administration panel is more simple than most people would imagine. Once the ./config/backup.php file has been given the appropriate settings you can visit the main administration page for the indexer and click on the button that says "Backup Database." Once you've done this you willbe asked to download a file to your computer. Please take note that this file,depending on the size of your database can be huge (figure 1Mb for every 10,000 files stored in the indexers database). Once this file has been saved to your disk you may tuck it away, and save it for the disasters we hope will never happen.
If you are renting bandwidth from a provider (buying web space from someone?) or are just concerned about having to download large amounts of data from your indexer, you should look into backing up the database with the mysqldump utility on the servers side of things, and compressing the backup file before transferring it. (I find that using the bzip2 compression utility I can turn a 21.7MB sql backup file into a 2.5MB compressed backup file. If you need assistance in preforming a manual mysql backup, please ask your administrator for assistance.
Restoring the database is quite simple. Just decompress the backup (if nessecary) and "run mysql -u{username} -p{password} -D {database} < {backup_file_name}" For further assistance with restoring a mysql database, please contact your administrator.

Section II: Removing Unwanted Files
Due to popular demand I've provided a utility for removing files from the database. You Can remove files from the database in one of 6 ways, directly from the main administration page.
First you enter the name of the file, or directory you want to remove from the database. If you are planning on removing via a wildcard, then you should just enter enough to be sure you are deleting what you want. For example, "badfile.zip" (a filename), "/tmp/" (a directory (remember to include all the appropriate "/" characters, or "porn" (if we were doing a wildcard match for anything with the word "porn" in it.) Next select your options -- Check "Files" to run the search against file names and, or, "Dirs" to run the search against directories. You can select "WildCard Match" with Files, Dirs, or both selected.
Please note that while exact (non wildcard matches) are very quick, wildcard matches are EXTREMELY SLOW (due to the nature of the search and remove process (if someone can come up with a better way to do this I would GLADLY take it and give credit!!!)) During wildcard matching you will see a "f" for every index entry removed due to a file, and a "d" for every entry removed due to a directory.
After any pf these actions has completed you will be forwarded back to the main administration page

Section III: Modifying FTP Sites
To select the site you wsh to modify, from the main administration panel, simply select the FTP you wish from the "Modify The Following FTP" drop-down box, and click the "Modify" button.
You can modify FTPs that have been submitted to the indexer in the following ways: change the username, password, host, port, or report-to email address (which is used very rarely), change the schedule by which the FTP is updated, force an update, force an update WITH an e-mail notification to the repot-to email address, or delete the FTP. You can gain the following information by from the ftp modification page: Number of Directories, files, the time it took to index the FTP, and the date of the last (attempted) update of the FTP.
Most of the values are straight forward, except the "schedule" field. For new admins this may be a bit confusing. "schedule" is really the number - in seconds - that the indexer will let slip by without re-indexing the site. so a value of "360" would cause the site to expire a mere 3 hours after its last indexing, and the FTP indexer will re-scan the site the next time that it gets a chance.
It's also worth while to note that before the administration panel will delete an FTP site altogether you need to check the "Verify Intent" box located BELOW the "Delete FTP" button, otherwise the request will be ignored.
After submitting any changes to a site you will be automatically firwarded back to the administration page.