Command Line

Main Commands

backup

Saves the internal database to a backup for archiving.

$ baratine backup
backup saved in /tmp/baratine/data-8085/backup/20150925T151109

backup-load

Restore the internal database from a backup archive

$ baratine backup-load --tag 20150925T151109

deploy

Deploys a service to a cluster.

$ baratine deploy examples/hello.jar
  deployed hello.jar to bfs:///config/pods/50-pod.cf

The default generated configuration file is bfs:///config/pods/50-pod.cf, and the default upload location is bfs:///usr/lib/pods/pod.bar.

exit

Exits from the Baratine shell.

help

Returns help information. If help is used with a command, displays the valid arguments.

$ baratine help deploy

jamp

Debugging call to a Baratine service.

$ baratine jamp /my-service my-method my-arg

shell

Starts a Baratine shell. Can be used to execute a script of Baratine commands.

shutdown

Shuts down the local watchdog and all the started Baratine servers.

$ baratine shutdown
Baratine/0.10.1 shutdown watchdog at 127.0.0.1:6700

start

Starts a baratine server.

$ baratine start
Baratine/0.10.1 start with watchdog at 127.0.0.1:6700
Baratine/0.10.1 launching watchdog at 127.0.0.1:6700

status

Displays the process status in Baratine server’s watchdog

$ baratine status

stop

Stops a baratine server.

$ baratine stop

undeploy

Undeploys a service archive

$ baratine undeploy pod

version

Returns the baratine version

$ baratine version

BFS commands

The BFS commands directly access Baratine’s distributed filesystem.

They can be used to upload distributed configuration files, or to check the status by looking at the /proc filesystem.

cat

Prints the contents of the BFS file.

$ baratine cat /proc/pods
...

cp

Copy one BFS file to another

du

Display file sizes and directorys.

get

Gets a BFS file and puts it in the local filesystem.

$ baratine get /config/pods/50-pod.cf pod.cf

ls

List a BFS file or directory.

put

Puts a local file into BFS.

$ baratine put my-pod /config/pods/60-pod.cf

rm

Removes a BFS file.