Introduction
A very simple command line tool to use bcdb as a file server
NAME:
bcfiles - Store an manage file in bcdb
USAGE:
bcfiles [global options] command [command options] [arguments...]
VERSION:
0.0.1
COMMANDS:
ls list files in a directory
mkdir make direcotory (equivalent to mkdir -p)
put put file <source> into <destination>
get get file <source> into <destination>
cat prints content of the file on screen
help, h Shows a list of commands or help for one command
GLOBAL FLAGS:
--debug, -d enable debug logging
--seed-file value Seed filename. It works with seed files generated by tfuser [$SEED_FILE]
--bcdb value, -b value Address of BCDB (default: "localhost:50051") [$BCDB]
--help, -h show help
--version, -v print the version
How to use
- Make sure you create a user on the explorer (https://explorer.devnet.grid.tf/) using the
tfuser
tool
- Use the seed to start bcdb as per documentation, starting bcdb with your own private seed will make bcdb only accept access from you
- bcfiles uses the same seed file format as generated by
tfuser
Upload files
bcfiles will create the required directories for you so u can start uploading files immediately
example
export SEED_FILE=/path/to/your/seed/file
bcfiles put /etc/resolv.conf /etc/resolv.conf
bcfiles ls
9 30 Apr 20 12:46 EET 0 etc
bcfiles ls etc
10 30 Apr 20 12:46 EET 107 resolv.conf
bcfiles cat etc/resolv.conf
# Generated by NetworkManager
search Home
nameserver fe80::6f3e:3e6e:e5d8:e816%zos0
nameserver 192.168.1.1