planify icon indicating copy to clipboard operation
planify copied to clipboard

[HELP NEEDED] Replacing the `database.db` with a symbolic link crashes the application

Open bxff opened this issue 4 years ago • 3 comments

Describe the bug When replacing the database.db with a symbolic link back to database.db crashes the application. I am doing this so that I can locally backup the files in a folder which I can later use as a easy backup or to use as live backup from multiple devices.

I am still new to Linux and am not sure if this is the way to achieve my backup goal. I will later try using rsync and similar sollution to achieve the same thing and report.

To Reproduce Steps to reproduce the behavior: 2. Move the file to somemedia I have attached to my system: mv "/home/dex/.var/app/com.github.alainm23.planner/data/com.github.alainm23.planner/database.db" "/media/somedrive/database.db"

  1. Make a link: ln -s "/media/somedrive/database.db" "/home/dex/.var/app/com.github.alainm23.planner/data/com.github.alainm23.planner/database.db"

Expected behavior Should simple work, with everything getting backedup.

Desktop:

  • OS or DE: Zorin 16
  • Version 2.7

Additional context Did I do anything wrong?

bxff avatar Jun 09 '21 00:06 bxff

Also I got the database.db file location from this issue, depending on how you installed Planner the location may be different: https://github.com/alainm23/planner/issues/609

bxff avatar Jun 09 '21 00:06 bxff

I don't think glib has the capability of following symlinks.

I suggest adding a cronjob to copy it regularly (ideally, you should check if the file is being used). rsync is a good option for that.

fmneto avatar Jun 09 '21 22:06 fmneto

Though @alainm23 really doesn't recommend it, and would rather you use the export system, there is a way to manually set the path of the planner database via dconf. I cant remember the exact instructions on how to do this, however.

BeatLink avatar Jun 10 '21 14:06 BeatLink

This problem is still pending to be solved and the best solution is to have an import and export service, I will close this issue because Planify 4.1 no longer has this feature.

alainm23 avatar Jun 26 '23 23:06 alainm23