YetAnotherPomodoroApp / YAPA-2

Minimalistic desktop timer app for Pomodoro Technique users
https://yapa2.app/
MIT License
515 stars 57 forks source link

Export and Import history to another computer #41

Open conradmcha opened 5 years ago

conradmcha commented 5 years ago

Hi,

Is there a way to export/import the history to another computer? Where is the history file saved?

In case my computer crashes, it would be nice to have a backup.

thanks

floatas commented 5 years ago

Hello, Currently there is no export in YAPA 2, but I think this is good idea. There are two options

  1. Add simple import, which would merge two databases.
  2. Allow to include other db (use multiple db). If you do pomodoros at work and lets say Yapa.db is saved to dropbox folder Work Pomodoros, at home your pomodoros are saved at different directory `Home pomodoros'. When displaying dashboard we could read both dbs, but write to only one of them. Depending on configuration in work or home dbs.

You can easily make backup, to do that go to My Documents\Yapa2 directory and there will be Yapa.db this file is SQL LITE database with all pomodoros.

conradmcha commented 5 years ago

@floatas Thanks!

Also, is there a way to modify the Yapa.db? For instance, today I forgot to start a pomodoro, so I am missing 1 pomodoro session from this morning. Where can I add this in the db file if I edit it on notepad++?

DerTrolde commented 2 years ago

My workaround about this: I create separate folders for different projects proj1, proj2 etc, and just replace snapshot.json and Yapa.db into a corresponding folder. Like if i switch from one project to another i just take those 2 files and cut them from MyDocuments\YAPA2 into MyDocuments\YAPA2\proj1. YAPA then creates those files from scratch on start for a new project.

floatas commented 2 years ago

@DerTrolde It's nice to hear that someone uses flow like that. I would love to make this flow much easier with some kind of project management.

DerTrolde commented 2 years ago

@floatas Well, this is the best app for pomodoro for sure. I use it all the time for work. I just can't work without the app, honestly. Fell in love with it after using several of them. If you'll have some time to add something like this (project switching) - that'd be just pure perfection :) Switching projects in my workflow is not a big issue since i got used to it, but if it becomes a built-in feature - everyone shall be happy and grateful. Thank you very much for such a great app!

floatas commented 2 years ago

@DerTrolde You could create different profiles for each work you are doing, lets say one is for work, other for personal project 1, personal project 2 ... With this release you can filter dashboard by pomodoro profiles.

flxflks commented 1 year ago

Hi,

Is there a way to export/import the history to another computer? Where is the history file saved?

In case my computer crashes, it would be nice to have a backup.

thanks

I second the point here, I would love to be able to import the data from another computer / merge databases.

floatas commented 1 year ago

@flxflks can you tell more about your use case? if you have three machines where you run application, you would like to merge pomodoros from two machines and view them on third one ?

There are several ways to implement this, not sure which one would be the best.

flxflks commented 1 year ago

Sure! I have been using yapa on my work machine, but now I need to return it. I have saved the whole folder containing all YAPA 2 files and transferred it to my personal machine. I have already installed Yapa on my personal machine and used it, so the folder with the new database exists. I would like to merge the two databases to keep all my the pomodoros I have done in the past.