Futilities/human/fti: Difference between revisions
(Created page with "Note to self: the particular archive repo I'm trying to merge in with the main Nextcloud is: sftp://root@statler.local/mnt/HexTera2/archive/collections/clouds/admin/owncloud") |
(options) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{fmt/title|FTI: File Tree Indexer}} | |||
==About== | |||
FTI spiders a folder-tree, hashing each file found, and produces a single JSON file which lists all of the files and their hashes. If a hash matches multiple files, they are listed together (currently these are commented out until I figure out how they should be represented in the output). | |||
The files produced by FTI can then be used by {{l/same/lc|FIC}} to determine what files in each tree are missing from another tree, where matching files might not be in matching relative paths or even have the same name. | |||
==Options== | |||
{{i/var/page|table.header|page=Futilities/human/options/base}} | |||
{{i/var/page|table.rows|page=Futilities/human/options/spider}} | |||
{{i/var/page|table.rows|page=Futilities/human/options/base}} | |||
</table> | |||
==Example== | |||
./fti -sp -lf=f=test.fti.log:i=fo file:///mnt/teralap/home/woozle/nextcloud/statler/Talk/Manor | |||
This indexes the tree at <code>/mnt/teralap/home/woozle/nextcloud/statler/Talk/Manor</code> while showing progress (-sp) and logging all of the folders (i=fo) to test.fti.log. | |||
==Notes== | |||
The particular archive repo I'm trying to merge in with the main Nextcloud is: | |||
sftp://root@statler.local/mnt/HexTera2/archive/collections/clouds/admin/owncloud | sftp://root@statler.local/mnt/HexTera2/archive/collections/clouds/admin/owncloud | ||
Indexing command (run on statler): | |||
./fti -sp /mnt/HexTera2/archive/collections/clouds/admin/owncloud | |||
The folderset for the current Nextcloud (read-only!) is: | |||
sftp://root@statler.local/mnt/TetraTera/www-data/nextcloud/admin/files/commons | |||
Indexing command (run on statler): | |||
./fti -sp /mnt/TetraTera/www-data/nextcloud/admin/files/commons |
Latest revision as of 00:59, 28 October 2022
FTI: File Tree Indexer
|
About
FTI spiders a folder-tree, hashing each file found, and produces a single JSON file which lists all of the files and their hashes. If a hash matches multiple files, they are listed together (currently these are commented out until I figure out how they should be represented in the output).
The files produced by FTI can then be used by FIC to determine what files in each tree are missing from another tree, where matching files might not be in matching relative paths or even have the same name.
Options
name | |||
---|---|---|---|
standard | long | short | meaning |
spider | --list-found=<params> | -lf=<params> | list all items found according to the rules in <params>, which is formatted like "<name>=<value>:<name>=<value>":
|
base | --config-file=<config spec> | -cf=<config spec> | name of config file to load instead of the default |
base | --show-progress | -sp | update a line on the screen to show current activity |
Example
./fti -sp -lf=f=test.fti.log:i=fo file:///mnt/teralap/home/woozle/nextcloud/statler/Talk/Manor
This indexes the tree at /mnt/teralap/home/woozle/nextcloud/statler/Talk/Manor
while showing progress (-sp) and logging all of the folders (i=fo) to test.fti.log.
Notes
The particular archive repo I'm trying to merge in with the main Nextcloud is:
sftp://root@statler.local/mnt/HexTera2/archive/collections/clouds/admin/owncloud
Indexing command (run on statler):
./fti -sp /mnt/HexTera2/archive/collections/clouds/admin/owncloud
The folderset for the current Nextcloud (read-only!) is:
sftp://root@statler.local/mnt/TetraTera/www-data/nextcloud/admin/files/commons
Indexing command (run on statler):
./fti -sp /mnt/TetraTera/www-data/nextcloud/admin/files/commons