nomeata / arbtt

arbtt, the automatic rule-based time-tracker
http://arbtt.nomeata.de/
GNU General Public License v2.0
318 stars 36 forks source link

how to use arbtt-dump and arbtt-import #169

Open hirschQ opened 1 year ago

hirschQ commented 1 year ago

hi, I read about the option to import a arbtt-dump (format=show or json) with arbtt-import here: https://arbtt.nomeata.de/doc/users_guide/arbtt-import.html I want to create a dump-file on another computer and import the content to my acutal capture.log on my main computer, but I don't understand the correct usage of arbtt-import, I bet I'm doing something wrong...

arbtt-dump >> dump-file.log

filename extension '.log' ok?

arbtt-import -a -f dump-file.log

looks like something is going on, but my capture.log isn't changed so I killed the process after 30mins

Can you please advice? Thanks a lot

nomeata commented 1 year ago

The terminology is a bit confusing, but the -f flag to arbtt-import can be used to use a different capture.log file. This indicates the target of the import, not the source.

arbtt-import reads data from standard input

so try

arbtt-dump > arbtt.dump

and then

arbtt-import < arbtt.dump