Metadata-Version: 2.1
Name: zotac
Version: 0.0.3
Summary: Zotac tools
Home-page: https://eforce1.feld.cvut.cz/gitlab/eforce-driveless/zotac
Author: Tomas Roun
Author-email: tomas.roun8@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS :: MacOS X
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# Zotac tools

This package simplifies remote manipulation of rosbags on zotac.
It lets you copy rosbags to your PC and delete old robags.
It also provides a view of all rosbags grouped by date.

## Usage

### Configure remote, rosbag dir and optionally disk name (for `zotac status`)

```bash
$ zotac config \
    remote SSH_CONNECTION_STRING \
    logdir PATH_TO_ROSBAGS \
    disk DISK_NAME
```

### Commands

Print the help
```bash
$ zotac COMMAND --help
```

e.g.

```bash
$ zotac copy --help
```


View the rosbag directory
```bash
$ zotac list
```

Copy selected rosbag including logs
```bash
$ zotac copy               # By default copies second-to-last bag
$ zotac copy ROSBAG_INDEX
$ zotac copy ROSBAG_INDEX TARGET_DIR
```

Copy only logs
```bash
$ zotac copy ROSBAG_INDEX -l/--logs-only
```

Delete logs
```bash
$ zotac delete -a/--all # Delete all
$ zotac delete -u/--until ROSBAG_INDEX # Delete all bags before
$ zotac delete -k/--keep ROSBAG_INDEX # Keep all bags after
```

View disk usage
```bash
$ zotac status
```


