There are two methods to help understand the current state of the command-line client, and to watch it's activity.
Status
Logs
Status
To view the status of the command-line client, use the status command:
jotta-cli status
This will display the following information:
$ jotta-cli status
----------------------------------------------------------------------
Account : test-user@email.com
Usage : 100GiB / ( Unlimited )
Device : test_device
----------------------------------------------------------------------
Sync :
----------------------------------------------------------------------
Path : /Users/test/sync
Files : 29 (3GiB)
Mode : listening to events
Status : Up to date - Thu Jun 3 13:42:56
----------------------------------------------------------------------
Backups :
----------------------------------------------------------------------
Path : /Users/test/path1
Files : 13 (7.89KiB)
Status : Up to date - Thu Jun 3 13:42:56
----------------------------------------------------------------------
Path : /Users/test/path2
Files : 154 (9.32GiB)
Status : Up to date - Thu Jun 3 13:42:56
----------------------------------------------------------------------
To see detail about errors (if there are any files that couldn't be backed up), use jotta-cli status -v
.
Logs
The command-line client will write logs to the jotta-cli install directory. You can see its location with jotta-cli logfile
. It can be moved via the config file - see how to do that here.
You can tail the logs of a running jottad process by using the tail
command:
jotta-cli tail
Press ctrl-c to exit the command.