LuteOrg / lute-v3

LUTE = Learning Using Texts: learn languages through reading.
https://luteorg.github.io/lute-manual/
MIT License
493 stars 46 forks source link

"BACKUP_PATH" in config.yml is not respected #431

Open yue-dongchen opened 6 months ago

yue-dongchen commented 6 months ago

Description

I set up cloud synchronisaton of the data folder between my Windows and macOS machines. In the config.yml of each installation, "DATAPATH" is respected, but "BACKUP_PATH" is not. The directory is instead stored in the database, which necessitates me to disable backups under this setup.

Extra software info, if not already included in the Description: Lute 3.4.0 without Docker

jzohrab commented 6 months ago

Hi @yue-dongchen , thx for the issue.

The BACKUP_PATH was intended to only be used for Docker, but the config file comments aren't clear at all.

Can you clarify what it is that you're doing? You share the db between two different computers, and expect the BACKUP_PATH to be used, regardless of the setting in the Settings page?

jzohrab commented 2 months ago

Yes, this is required for situations where someone uses dropbox to sync the db to different computers, because the backup paths will be different for different areas.

however, if a machine uses Docker, it should not use the backup_path, since that needs to be the specific mounted folder in the container. :-P