mdb-fs

command module
v1.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2022 License: MIT Imports: 10 Imported by: 0

README

MDB-FS - Metadata DB File System

Overview

A SHA-1 based file system for backup of physical files in the BB archive.

Commands

sync

Start the sync daemon

index

Heavy operation to ensure our SHA-1 FS is consistent with itself.
Better execute it in background.

cd /sites/mdb-fs
nohup ./mdb-fs index > index.log & 2>&1

reshape folder mode

Import a local folder with whatever structure to our SHA-1 based folder structure.

folder: Source folder to import from.

mode: "rename" will move files from source folder. Existing and new alike.

mode: "link" will only hard link to source folder.

version

Print version and exit

Contributing

$ git clone https://github.com/Bnei-Baruch/mdb-fs.git
$ cd mdb-fs
$ make build

To work with a local mdb copy

docker-compose up -d
wget https://kabbalahmedia.info/assets/mdb_dump.sql.gz
gunzip mdb_dump.sql.gz
psql -h localhost -U user -d mdb -p 5434 < mdb_dump.sql

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL