Updates for files changes
6
TODO
@ -146,6 +146,12 @@ mbfile:
|
|||||||
N: The import function doesn't strip the [0] from the files.bbs
|
N: The import function doesn't strip the [0] from the files.bbs
|
||||||
when importing the description.
|
when importing the description.
|
||||||
|
|
||||||
|
N: With rearc if a LFN results in a new mangled name, update this.
|
||||||
|
|
||||||
|
N: With rearc if a file is a magic file, update the magic entry.
|
||||||
|
|
||||||
|
N: After rearc force index.
|
||||||
|
|
||||||
mbmsg:
|
mbmsg:
|
||||||
N: With the post command if a netmail area is used the netmail area
|
N: With the post command if a netmail area is used the netmail area
|
||||||
will cause trouble later, should be blocked to be used on netmail
|
will cause trouble later, should be blocked to be used on netmail
|
||||||
|
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 9.8 KiB |
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 9.3 KiB |
@ -14,7 +14,7 @@
|
|||||||
</HEAD>
|
</HEAD>
|
||||||
<BODY>
|
<BODY>
|
||||||
<BLOCKQUOTE>
|
<BLOCKQUOTE>
|
||||||
<div align="right"><h5>Last update 08-Nov-2003</h5></div>
|
<div align="right"><h5>Last update 08-Mar-2004</h5></div>
|
||||||
<div align="center"><H1>mbfile - File database maintenance program.</H1></div>
|
<div align="center"><H1>mbfile - File database maintenance program.</H1></div>
|
||||||
|
|
||||||
<H3>Synopsys.</H3>
|
<H3>Synopsys.</H3>
|
||||||
@ -70,8 +70,9 @@ file is removed. If the area is a CD-rom area, the check that files on disk
|
|||||||
must exist in the filedatabase is skipped.
|
must exist in the filedatabase is skipped.
|
||||||
<P>
|
<P>
|
||||||
|
|
||||||
<code><strong>mbfile</strong> delete <area> <file></code>
|
<code><strong>mbfile</strong> delete <area> "<filemask>"</code>
|
||||||
Mark a file in an area for later deletion.
|
Mark file(s) in an area for later deletion. You can use wildcards, and if you do
|
||||||
|
surround them with quotes to prevent shell expansion.
|
||||||
The file is not removed until you run <strong>mbfile pack</strong>.
|
The file is not removed until you run <strong>mbfile pack</strong>.
|
||||||
<P>
|
<P>
|
||||||
|
|
||||||
@ -136,15 +137,21 @@ you delete files with mbsetup or with mbfile, they are still in your database an
|
|||||||
until you run <strong>mbfile pack</strong>.
|
until you run <strong>mbfile pack</strong>.
|
||||||
<P>
|
<P>
|
||||||
|
|
||||||
|
<code><strong>mbfile</strong> rearc <area> "<filemask>"</code>;
|
||||||
|
Re-archive file(s) in an file area to the archiver that must be set in the
|
||||||
|
<a href="../setup/files.html">file area setup</a>.
|
||||||
|
<P>
|
||||||
|
|
||||||
<code><strong>mbfile</strong> sort <area></code>
|
<code><strong>mbfile</strong> sort <area></code>
|
||||||
Sort the files in area on the long filenames. The sort is case insensitive. When
|
Sort the files in area on the long filenames. The sort is case insensitive. When
|
||||||
the sort is completed, the command <strong>mbfile index</strong> will automatic
|
the sort is completed, the command <strong>mbfile index</strong> will automatic
|
||||||
run to rebuild all indexes.
|
run to rebuild all indexes.
|
||||||
<P>
|
<P>
|
||||||
|
|
||||||
<code><strong>mbfile</strong> undelete <area> <file></code>
|
<code><strong>mbfile</strong> undelete <area> "<filemask>"</code>
|
||||||
Mark a file that is marked for deletion to be available again, ie. undo the deletion
|
Mark a file that is marked for deletion to be available again, ie. undo the deletion
|
||||||
mark.
|
mark. You can use wildcards, and if you do
|
||||||
|
surround them with quotes to prevent shell expansion.
|
||||||
<P> <P>
|
<P> <P>
|
||||||
|
|
||||||
<H3>Options.</H3>
|
<H3>Options.</H3>
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
</HEAD>
|
</HEAD>
|
||||||
<BODY>
|
<BODY>
|
||||||
<BLOCKQUOTE>
|
<BLOCKQUOTE>
|
||||||
<div align='right'><h5>Last update 21-Jan-2002</h5></div>
|
<div align='right'><h5>Last update 08-Mar-2004</h5></div>
|
||||||
<div align='center'><H1>MBSE BBS Setup - Files Database.</H1></div>
|
<div align='center'><H1>MBSE BBS Setup - Files Database.</H1></div>
|
||||||
|
|
||||||
<H3>Introduction.</H3>
|
<H3>Introduction.</H3>
|
||||||
@ -33,15 +33,12 @@ will be when I have the time. The basic file entries can't be changed.
|
|||||||
<strong>FileDate </strong>The real date of the file.
|
<strong>FileDate </strong>The real date of the file.
|
||||||
<strong>Last DL. </strong>The date of the last download of the file.
|
<strong>Last DL. </strong>The date of the last download of the file.
|
||||||
<strong>Upl.Date </strong>The upload date.
|
<strong>Upl.Date </strong>The upload date.
|
||||||
|
<strong>TIC Area </strong>The name of the tic area the file was received in.
|
||||||
|
<strong>Magic </strong>The magic name to download/freq this file.
|
||||||
<strong>Uploader </strong>The name of the uploader.
|
<strong>Uploader </strong>The name of the uploader.
|
||||||
<strong>Times DL </strong>The number of times downloaded from the BBS.
|
<strong>Times DL </strong>The number of times downloaded from the BBS.
|
||||||
<strong>Times FTP </strong>Not in use yet.
|
|
||||||
<strong>Times Req </strong>The number of times requested by mailer.
|
|
||||||
<strong>Password </strong>The password to access this file.
|
<strong>Password </strong>The password to access this file.
|
||||||
<strong>Cost </strong>Not in use yet.
|
|
||||||
<strong>Free </strong>If this file is free for download.
|
|
||||||
<strong>Deleted </strong>If this file should be deleted.
|
<strong>Deleted </strong>If this file should be deleted.
|
||||||
<strong>Missing </strong>If this file is missing on disk.
|
|
||||||
<strong>No Kill </strong>Don't delete this file with <strong>mbfile</strong>
|
<strong>No Kill </strong>Don't delete this file with <strong>mbfile</strong>
|
||||||
<strong>Announced </strong>If this file is ever announced as new.
|
<strong>Announced </strong>If this file is ever announced as new.
|
||||||
</pre>
|
</pre>
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
</HEAD>
|
</HEAD>
|
||||||
<BODY>
|
<BODY>
|
||||||
<BLOCKQUOTE>
|
<BLOCKQUOTE>
|
||||||
<div align="right"><h5>Last update 30-Sep-2002</h5></div>
|
<div align="right"><h5>Last update 08-Mar-2003</h5></div>
|
||||||
<div align="center"><H1>MBSE BBS Setup - File Echo's Setup - File Groups.</H1></div>
|
<div align="center"><H1>MBSE BBS Setup - File Echo's Setup - File Groups.</H1></div>
|
||||||
|
|
||||||
<H3>Introduction.</H3>
|
<H3>Introduction.</H3>
|
||||||
@ -33,16 +33,6 @@ each distribution group, ie. Fidonet, SDS etc. The name of that group must
|
|||||||
exactly match the comment field in the group in this setup.
|
exactly match the comment field in the group in this setup.
|
||||||
<P> <p>
|
<P> <p>
|
||||||
|
|
||||||
<h3>Cost Sharing.</H3>
|
|
||||||
<P>
|
|
||||||
With the setup of groups you can also specify the Cost Sharing for the
|
|
||||||
files distribution. The unit cost is the cost for each transmitted file
|
|
||||||
if the unit size field is zero, or the unit price per transmitted unit size.
|
|
||||||
The final cost is multiplied with the "Add Prom." factor to add taxes or so.
|
|
||||||
Also if your uplink sends advanced .tic files, the cost found in that .tic
|
|
||||||
file will be added to the cost as well. Further you can set the final price
|
|
||||||
to divide between your downlinks or let them all pay the full price.
|
|
||||||
|
|
||||||
<H3>File Group Setup.</H3>
|
<H3>File Group Setup.</H3>
|
||||||
<P>
|
<P>
|
||||||
<pre>
|
<pre>
|
||||||
@ -61,10 +51,6 @@ to divide between your downlinks or let them all pay the full price.
|
|||||||
<strong>Active </strong>If this group is active.
|
<strong>Active </strong>If this group is active.
|
||||||
<strong>Deleted </strong>If this group must be deleted.
|
<strong>Deleted </strong>If this group must be deleted.
|
||||||
<strong>Start at </strong>New created areas must start at area nr.
|
<strong>Start at </strong>New created areas must start at area nr.
|
||||||
<strong>Unit Cost </strong>The cost per unit.
|
|
||||||
<strong>Unit Size </strong>The size in Kbytes per unit.
|
|
||||||
<strong>Add Prom. </strong>The prommilage to add to the cost.
|
|
||||||
<strong>Divide </strong>Divide cost over downlinks.
|
|
||||||
<strong>Auto chng </strong>Auto change when running <b>mbfido areas</b>
|
<strong>Auto chng </strong>Auto change when running <b>mbfido areas</b>
|
||||||
<strong>User chng </strong>Auto create areas on downlinks requests.
|
<strong>User chng </strong>Auto create areas on downlinks requests.
|
||||||
<strong>Replace </strong>Set replace option in new areas.
|
<strong>Replace </strong>Set replace option in new areas.
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
</HEAD>
|
</HEAD>
|
||||||
<BODY>
|
<BODY>
|
||||||
<BLOCKQUOTE>
|
<BLOCKQUOTE>
|
||||||
<div align='right'><h5>Last update 18-Feb-2002</h5></div>
|
<div align='right'><h5>Last update 08-Mar-2004</h5></div>
|
||||||
<div align='center'><H1>MBSE BBS Setup - BBS Setup - File Areas.</H1></div>
|
<div align='center'><H1>MBSE BBS Setup - BBS Setup - File Areas.</H1></div>
|
||||||
|
|
||||||
<H3>File Areas introduction.</H3>
|
<H3>File Areas introduction.</H3>
|
||||||
@ -63,7 +63,6 @@ moved to the new location.
|
|||||||
<strong>DL days </strong>How long must a file not been downloaded to (re)move it.
|
<strong>DL days </strong>How long must a file not been downloaded to (re)move it.
|
||||||
<strong>FD days </strong>How old must a file be to be (re)moved.
|
<strong>FD days </strong>How old must a file be to be (re)moved.
|
||||||
<strong>Move area </strong>The area to move the file to, if zero it is deleted.
|
<strong>Move area </strong>The area to move the file to, if zero it is deleted.
|
||||||
<strong>Cost </strong>The cost in units to download from this area.
|
|
||||||
<strong>Archiver </strong>The archiver to use to repack the files with.
|
<strong>Archiver </strong>The archiver to use to repack the files with.
|
||||||
<strong>Upload </strong>Alternate upload area. If a user uploads a file in this
|
<strong>Upload </strong>Alternate upload area. If a user uploads a file in this
|
||||||
area, it will be placed in the alternate area. If the
|
area, it will be placed in the alternate area. If the
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
</HEAD>
|
</HEAD>
|
||||||
<BODY>
|
<BODY>
|
||||||
<BLOCKQUOTE>
|
<BLOCKQUOTE>
|
||||||
<div align=right><h5>Last update 08-Jan-2004</h5></div>
|
<div align=right><h5>Last update 08-Mar-2004</h5></div>
|
||||||
<div align=center><H1>MBSE BBS Setup - Fidonet nodes.</H1></div>
|
<div align=center><H1>MBSE BBS Setup - Fidonet nodes.</H1></div>
|
||||||
<P>
|
<P>
|
||||||
|
|
||||||
@ -194,20 +194,6 @@ the ticfile. Some braindead systems will forward this line instead of processing
|
|||||||
it and then the next system in the line will fail.</td></tr>
|
it and then the next system in the line will fail.</td></tr>
|
||||||
<tr><th nowrap align=left valign=top>File forward</th><td>Forward TIC files for
|
<tr><th nowrap align=left valign=top>File forward</th><td>Forward TIC files for
|
||||||
this node (not yet).</td></tr>
|
this node (not yet).</td></tr>
|
||||||
<tr><th nowrap align=left valign=top>Billing</th><td>Is Costsharing active for
|
|
||||||
this node.</td></tr>
|
|
||||||
<tr><th nowrap align=left valign=top>Bill direct</th><td>Send the bill direct or
|
|
||||||
on command (billing is not yet available).</td></tr>
|
|
||||||
<tr><th nowrap align=left valign=top>Credit</th><td>The credit this node has in
|
|
||||||
units.</td></tr>
|
|
||||||
<tr><th nowrap align=left valign=top>Debit</th><td>The debit we have with this
|
|
||||||
node (informational).</td></tr>
|
|
||||||
<tr><th nowrap align=left valign=top>Add</th><td>Add (or substract) factor to
|
|
||||||
the bill.</td></tr>
|
|
||||||
<tr><th nowrap align=left valign=top>Warn level</th><td>The debit level when to
|
|
||||||
write a warning mesage.</td></tr>
|
|
||||||
<tr><th nowrap align=left valign=top>Stop level</th><td>The debit level when to
|
|
||||||
stop sending files.</td></tr>
|
|
||||||
</table>
|
</table>
|
||||||
<P>
|
<P>
|
||||||
<IMG SRC="../images/nodes6.png" alt='Nodes files setup'>
|
<IMG SRC="../images/nodes6.png" alt='Nodes files setup'>
|
||||||
|
@ -166,7 +166,7 @@ int rearc(char *filename, char *arctype, int do_quiet)
|
|||||||
|
|
||||||
if (!do_quiet) {
|
if (!do_quiet) {
|
||||||
colour(10, 0);
|
colour(10, 0);
|
||||||
printf("\r Packing file %s", filename);
|
printf("\r Packing file %s ", newname);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -48,7 +48,7 @@ void ReArc(int Area, char *File)
|
|||||||
{
|
{
|
||||||
char *p, *temp, *linkpath, mask[256];
|
char *p, *temp, *linkpath, mask[256];
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
int i, rc = -1;
|
int i, rc = -1, count = 0, errors = 0;
|
||||||
struct utimbuf ut;
|
struct utimbuf ut;
|
||||||
|
|
||||||
IsDoing("ReArc file(s)");
|
IsDoing("ReArc file(s)");
|
||||||
@ -98,6 +98,7 @@ void ReArc(int Area, char *File)
|
|||||||
if (re_exec(fdb.LName) || re_exec(fdb.Name)) {
|
if (re_exec(fdb.LName) || re_exec(fdb.Name)) {
|
||||||
Syslog('+', "Will rearc %s", fdb.LName);
|
Syslog('+', "Will rearc %s", fdb.LName);
|
||||||
sprintf(temp, "%s/%s", area.Path, fdb.Name);
|
sprintf(temp, "%s/%s", area.Path, fdb.Name);
|
||||||
|
count++;
|
||||||
|
|
||||||
rc = rearc(temp, area.Archiver, do_quiet);
|
rc = rearc(temp, area.Archiver, do_quiet);
|
||||||
if (rc == 0) {
|
if (rc == 0) {
|
||||||
@ -177,12 +178,13 @@ void ReArc(int Area, char *File)
|
|||||||
symlink(temp, linkpath);
|
symlink(temp, linkpath);
|
||||||
free(linkpath);
|
free(linkpath);
|
||||||
} else {
|
} else {
|
||||||
|
errors++;
|
||||||
break; // stop when something goes wrong
|
break; // stop when something goes wrong
|
||||||
}
|
}
|
||||||
if (!do_quiet) {
|
if (!do_quiet) {
|
||||||
colour(7, 0);
|
colour(7, 0);
|
||||||
printf("\r");
|
printf("\r");
|
||||||
for (i = 0; i < (strlen(temp) + 17); i++)
|
for (i = 0; i < (strlen(temp) + 20); i++)
|
||||||
printf(" ");
|
printf(" ");
|
||||||
printf("\r");
|
printf("\r");
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
@ -191,6 +193,7 @@ void ReArc(int Area, char *File)
|
|||||||
}
|
}
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
free(temp);
|
free(temp);
|
||||||
|
Syslog('+', "ReArc Files [%5d] Good [%5d] Errors [%5d]", count, count - errors, errors);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -114,17 +114,17 @@ void Help(void)
|
|||||||
colour(CYAN, BLACK);
|
colour(CYAN, BLACK);
|
||||||
printf(" a adopt <area> <file> [desc] Adopt file to area\n");
|
printf(" a adopt <area> <file> [desc] Adopt file to area\n");
|
||||||
printf(" c check Check filebase\n");
|
printf(" c check Check filebase\n");
|
||||||
printf(" d delete <area> <filemask> Mark file(s) in area for deletion\n");
|
printf(" d delete <area> \"<filemask>\" Mark file(s) in area for deletion\n");
|
||||||
printf(" im import <area> Import files in current dir to area\n");
|
printf(" im import <area> Import files in current dir to area\n");
|
||||||
printf(" in index Create filerequest index\n");
|
printf(" in index Create filerequest index\n");
|
||||||
printf(" k kill Kill/move old files\n");
|
printf(" k kill Kill/move old files\n");
|
||||||
printf(" l list [area] List file areas or one area\n");
|
printf(" l list [area] List file areas or one area\n");
|
||||||
printf(" m move <from> <to> <file> Move file from to area\n");
|
printf(" m move <from> <to> <file> Move file from to area\n");
|
||||||
printf(" p pack Pack filebase\n");
|
printf(" p pack Pack filebase\n");
|
||||||
printf(" r rearc <area> <filemask> Rearc file(s) in area to area archive type\n");
|
printf(" r rearc <area> \"<filemask>\" Rearc file(s) in area to area archive type\n");
|
||||||
printf(" s sort <area> Sort files in a file area\n");
|
printf(" s sort <area> Sort files in a file area\n");
|
||||||
printf(" t toberep Show toberep database\n");
|
printf(" t toberep Show toberep database\n");
|
||||||
printf(" u undelete <area> <filemask> Mark file(s) in area for undeletion\n");
|
printf(" u undelete <area> \"<filemask>\" Mark file(s) in area for undeletion\n");
|
||||||
colour(LIGHTBLUE, BLACK);
|
colour(LIGHTBLUE, BLACK);
|
||||||
printf("\n Options are:\n\n");
|
printf("\n Options are:\n\n");
|
||||||
colour(CYAN, BLACK);
|
colour(CYAN, BLACK);
|
||||||
|