Zotac tools
Project description
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.
Installation
Simply run
$ python3 -m pip install zotac
(Requires python >= 3.6)
Usage
Configure remotes, rosbag dir and optionally disk name (for zotac status
)
$ zotac config \
remotes REMOTE1,REMOTE2,REMOTE3,.. \
logdir PATH_TO_ROSBAGS \
disk DISK_NAME
It is possible to configure multiple remotes by passing a comma-separated list. When issuing commands to zotac, the tool will first select an available remote from the specified list.
Commands
Print the help
$ zotac COMMAND --help
e.g.
$ zotac copy --help
Get more detailed output (suitable for debugging):
$ zotac COMMAND -v/--verbose
e.g.
$ zotac list -v
View the rosbag directory
$ zotac list
Copy selected rosbag including logs
$ zotac copy # By default copies second-to-last bag
$ zotac copy ROSBAG_INDEX
$ zotac copy ROSBAG_INDEX TARGET_DIR
Copy only logs
$ zotac copy ROSBAG_INDEX -l/--logs-only
Delete logs
$ 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
$ zotac status
Configure
$ zotac config \
remotes REMOTE1,REMOTE2,REMOTE3,.. \
logdir PATH_TO_ROSBAGS \
disk DISK_NAME
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zotac-0.0.4.tar.gz
(6.5 kB
view hashes)
Built Distribution
zotac-0.0.4-py3-none-any.whl
(6.7 kB
view hashes)