From 60369ea378be82cd76ba954577b9bd34dec919a3 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Tue, 4 Dec 2018 20:42:56 -0700 Subject: [PATCH] * Note on FILEBONE.NA support * Notes on importing in file area docs --- core/oputil/oputil_file_base.js | 4 +++- core/oputil/oputil_help.js | 1 + docs/admin/oputil.md | 1 + docs/filebase/first-file-area.md | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/core/oputil/oputil_file_base.js b/core/oputil/oputil_file_base.js index 9d847968..2077b385 100644 --- a/core/oputil/oputil_file_base.js +++ b/core/oputil/oputil_file_base.js @@ -711,6 +711,8 @@ function importFileAreas() { // FILEGATE.ZXX "RAID" format currently the only supported format. // // See http://www.filegate.net/info/filegate.zxx + // ...same format as FILEBONE.NA: + // http://wiki.mysticbbs.com/doku.php?id=mutil_import_filebone_na // const importPath = argv._[argv._.length - 1]; if(argv._.length < 3 || !importPath || 0 === importPath.length) { @@ -718,7 +720,7 @@ function importFileAreas() { } const importType = getFileBaseImportType(importPath); - if('zxx' !== importType) { + if(!['zxx', 'na'].includes(importType)) { return console.error(`"${importType}" is not a recognized import file type`); } diff --git a/core/oputil/oputil_help.js b/core/oputil/oputil_help.js index 04e79f34..8b946edd 100644 --- a/core/oputil/oputil_help.js +++ b/core/oputil/oputil_help.js @@ -83,6 +83,7 @@ remove args: --phys-file also remove underlying physical file import-areas args: + --type TYPE sets import areas type. valid options are "zxx" or "na" --create-dirs create backing storage directories `, FileOpsInfo : diff --git a/docs/admin/oputil.md b/docs/admin/oputil.md index d7e69b0f..c733070f 100644 --- a/docs/admin/oputil.md +++ b/docs/admin/oputil.md @@ -124,6 +124,7 @@ remove args: --phys-file also remove underlying physical file import-areas args: + --type TYPE sets import areas type. valid options are "zxx" or "na" --create-dirs create backing storage directories general information: diff --git a/docs/filebase/first-file-area.md b/docs/filebase/first-file-area.md index 9879cd86..ab76fe24 100644 --- a/docs/filebase/first-file-area.md +++ b/docs/filebase/first-file-area.md @@ -82,3 +82,5 @@ fileBase: { } ``` +## Importing Areas +Areas can also be imported using [oputil](/docs/admin/oputil.md) using proper FileGate "RAID" aka `FILEBONE.NA` style files. After importing areas, you may wish to tweak configuration such as better `desc` fields, ACS, or sorting.