====== data directory ====== The location of the ''data'' directory is configurable (in [[util:SCFG]]->System->Advanced Options), but defaults to a sub-directory named **''data''** off of the installation directory (e.g. ''/sbbs/data/''). ===== Directory Contents ===== The Synchronet Data directory contains the run-time data created during the normal operation of the BBS. Examples include: - ''mail.*'' - Private email and netmail message base - ''spam.hash'' - Database of known-SPAM message body hashes (used by the [[server:Mail]] Server) - ''logon.jsonl'' - List of user logons to the [[server:Terminal]] Server (''logon.*.jsonl'' files are previous days logons) - ''logon.lst'' - List of user logons to the [[server:Terminal]] Server - //legacy format// - ''areas.bbs'' - FidoNet-style message areas (used by [[util:SBBSecho]]) - ''badareas.lst'' - Unconnected FidoNet-style message areas (used by [[util:SBBSecho]]) - ''echostats.ini'' - FidoNet-style message area statistics (used by [[util:SBBSecho]]) - ''sbbslist.json'' - BBS List (used by [[module:sbbslist]]) - ''*.log'' - Log files created by Synchronet and some utilities (e.g. [[util:SBBSecho]]) - ''*.now'' - [[config:semfiles|Semaphore files]] used by Synchronet - ''pack.lock'' - Present while a QWK packet is being created, or a QWK reply packet imported, for that user - ''.REP'' - QWK reply packet created for a QWKnet hub, waiting to be sent - ''.qwk'' - QWK packet received from a QWKnet hub, waiting to be imported (''.qwk..bad'' if the import failed; the newest 10 per hub are kept) ===== Sub-directories ===== Typical sub-directories of the Data directory include: ==== user ==== Where user data is stored. - ''user.tab'' - [[history:newuserbase|user database]] - ''name.dat'' - username index - ''.sig'' - user signature - ''.*'' - other user data (e.g. settings) file - ''.ini'' - user configuration settings (used by JS modules) - ''.subs'' - user message-scan configuration and pointers - ''.upload'' - user batch upload queue - ''.dnload'' - user batch download queue - ''/*/'' - sub-directories for further per-user data storage ==== subs ==== Synchronet message-base (SMB) files for configured sub-boards ([[util:SCFG]]->Message Areas) reside here. - ''.shd'' - message headers - ''.sha'' - message header allocation (optional) - ''.sid'' - message indexes - ''.sdt'' - message data - ''.sda'' - message data allocation (optional) - ''.sch'' - message CRC history (for duplicate message body text checking) - ''.ini'' - message base auxiliary configuration and state information - ''.hash'' - message hashes (for indexing and duplicate message ID and body text checking) - ''.sfp'' - SBBSecho FidoNet export pointer (old/deprecated style, replaced with ''*.ini'') - ''.list.sub'' - Synchronet ListServer subscribers - ''.list.ptr'' - Synchronet ListServer export pointer (old/deprecated style, replaced with ''*.ini'') - ''.smm'' - Synchronet Match Maker import pointer ==== dirs ==== File transfer directory database files reside here. - ''.shd'' - file headers (metadata about files) - ''.sha'' - file header allocation - ''.sid'' - file indexes (filenames and hash values) - ''.sdt'' - file extended descriptions and aux data - ''.sda'' - file extended descriptions and aux data allocation - ''.ini'' - filebase metadata ==== file ==== This directory contains various file transfer: - Pre-packed QWK packets (''.qwk'') - QWK reply packets waiting to be imported (''.rep'' or ''..rep'') - QWK reply packets that failed to import (''.rep..bad'', the newest 10 per user are kept) - Files received via QWK reply packet (''.in/*'') ==== logs ==== Dated log files, one per day, are stored in this directory: - ''MMDDYY.log'' - Terminal Server user activity log - ''MMDDYY.lol'' - logoff list, one line per user session - ''http-*.log'' - [[server:web|Web Server]] access logs (when enabled) This is the ''logs'' sub-directory of the //Logs Directory// configured in [[util:SCFG]]->System->Advanced Options ([[config:system#advanced_options|details]]), which defaults to the ''data'' directory. Undated log files (e.g. ''error.log'', ''hack.log'', ''spam.log'', ''guru.log'', ''hungup.log'', ''crash.log'', ''events.log'') are written in the //Logs Directory// itself, not in this sub-directory. ==== qnet ==== QWK networking files are stored in this directory. - ''.ptr'' - QWKnet hub export pointer - ''.lock'' - Present while a REP packet is being created for, or a QWK packet imported from, the QWKnet hub - ''.out/*'' - File to send to QWKnet node or hub - ''.in/*'' - Files received from QWKnet node or hub - ''.avatars.ini'' - Users avatars received from QWKnet node or hub - ''.*.bin'' - Avatar collections received from QWKnet node or hub - ''route.dat'' - QWKnet route table - ''NODES.DAT'' - QWKnet node list - ''USERS.DAT'' - QWKnet user list ==== fido==== FidoNet-style networking files are stored in this directory ('''' is in hexadecimal net/node format). - ''.avatars.ini'' - Users avatars received from FidoNet-style node - ''.*.bin'' - Avatar collections received from FidoNet-style ==== finger ==== Files placed here can be queried using "special finger requests" to the [[service:finger]] service. ==== msgs ==== Short text messages are stored here: - ''.msg'' - user-to-user short message (a.k.a. telegram) - ''n.msg'' - node-to-node short message - ''auto.msg'' - system auto-message ==== text ==== Hierarchy and index files utilized for the //text files// BBS subsection. ===== See Also ===== * [[./index|Directory structure]]