redisを使用したオプションのパスワード保護と圧縮により、ネットワーク化されたファイルストレージと検索。
ファイルは、発信元のホスト名のキーとファイル名への絶対パスで保存されます。
ファイルはパスワードで保存される場合があります。パスワードでは暗号化されており、データを取得するために同じパスワードを使用する必要があります。
netfetchputを使用してファイルを保存します。
Usage: netFetchPut (options) [absolute filename]
Stores a given file in NetFetch, optionally password-protecting it as well.
Options:
--password Prompt for password on storing this file
--password-file=fname Read password from a given filename instead of tty. Implies --password.
--no-preserve Do not store owner/group/mode information
--config=/path/x.cfg Use provided config for redis. Default is to look in ~/.netfetch.cfg then /etc/netfetch.cfg
--compress(=mode) Compress the file data for storage (and decompress after fetch).
Default compression mode is lzma.
Use just --compress for this default mode.
You can specify an alternate mode by appending =MODE after --compress.
Supported modes are: 'lzma' (aka xz) 'gzip' 'bzip2'
Provided filename is treated as an absolute path. You can use a relative path, but it will be expanded
to absolute for storage. Upon fetch, you can use the same relative path, so long as it resolves
to the same absolute location. It is safest to just specify an absolute path yourself.
Example: netFetchPut /Data/myfile.db
netfetchgetを使用してファイルを取得します
Usage: netFetchGet (options) [hostname] [filename] [output filename]
Downloads a file uploaded from hostname, given an absolute filename.
If "output filename" is "--", output will be to stdout.
Options:
--password Prompts for password. If file is encrypted, a password must be provided.
--password-file=fname Read password from a given filename instead of tty. Implies --password.
--no-preserve Do not apply stored attributes (owner/group/mode)
--config=/path/config.cfg Use provided config for redis. Default is to look in ~/.netfetch.cfg then /etc/netfetch.cfg
Provided filename is treated as an absolute path. You can use a relative path, but it will be expanded
to absolute for storage. Upon fetch, you can use the same relative path, so long as it resolves
to the same absolute location. It is safest to just specify an absolute path yourself.
Example: netFetchGet filestore01 /Data/myfile.db
NetFetchDeleteを使用してファイルを削除します
Usage: netFetchDelete (options) [hostname] [filename]
Deletes a NetFetch file off of provided hostname.
Options:
--config=/path/config.cfg Use provided config for redis. Default is to look in ~/.netfetch.cfg then /etc/netfetch.cfg
Provided filename is treated as an absolute path. You can use a relative path, but it will be expanded
to absolute for storage. Upon fetch, you can use the same relative path, so long as it resolves
to the same absolute location. It is safest to just specify an absolute path yourself.
Example: netFetchDelete filestore01 /Data/myfile.db
接続するRedisサーバーは、構成ファイルによって指定されます。アプリケーションは、最初の$ home/.netfetch.cfg、then/etc/netfetch.cfgをチェックします。
構成の例:
[redis]
host=127.0.0.1
port=6379
db=1
バージョン3.0から始めて、NetFetchは圧縮をサポートします。これは、netfetchput中に「 - 圧縮」フラグによって提供されます。
デフォルトの圧縮モードはLZMA(別名「LZ」)です。別の圧縮モードを使用するには、「 - -Compress = Mode」を指定します。ここで、モードはLZMA/XZ、GZIP/GZ、BZIP2/BZ2の1つです。
圧縮はPUTでのみ指定する必要があり、GETは自動的にどのモードを検出し、結果を解凍します。
バージョン3.0には、indexedredis> 5.0.0および<7.0.0が必要です。 5.0.0よりも少ないバージョンを使用する必要がある場合は、バージョン2.0.3を使用します。
3.0で使用されるデータ形式は、バージョン2.0データ形式と互換性がありますが、1.x形式のサポートを削除しました。今後のすべては、将来のすべてのバージョンと将来を模倣する必要があります。
バージョン2.0は、ストレージ形式をはるかに効率的なフォームに更新しました(Base64-Encoding/Decodingの代わりに直接保存)。これにより、すべてがはるかに高速になり、スペースが少なくなりますが、2.0以前のバージョンとは互換性がありません。古い形式を使用してファイルを取得/配置するには、netfetchget/netfetchputで「-old-format」を使用します。
移行するには、「-old-format」を使用してファイルを取得し、そのフラグなしでそれらを保存します。暗号化のため、自動ユーティルはありません。
バージョン2.0は、少なくともバージョン2.9.0のIndexedRedisにも依存します
http://htmlpreview.github.io/?https://github.com/kata198/netfetch/blob/master/doc/netfetch.html。