Borg/docs/usage.md

34 lines
563 B
Markdown
Raw Normal View History

# Usage
This document explains how to use the Borg Data Collector.
## `collect git`
The `collect git` command is used to clone a git repository and store it in a DataNode.
### Example
```bash
borg collect git --uri https://github.com/torvalds/linux.git
```
## `collect website`
The `collect website` command is used to crawl a website and store it in a DataNode.
### Example
```bash
borg collect website --uri https://tldp.org/
```
## `serve`
The `serve` command is used to serve a DataNode file.
### Example
```bash
borg serve --file linux.borg
```