Repository navigation
Two types of backup folder paths #759
Linux DistributionDebian GNU/Linux 12 (bookworm) >> Linux 6.12.47+rpt-rpi-v8 What happenedTwo types of backup folder paths. What did you expect to happenOne backup folder path. How to reproduceUpdate a component with the setting Auto-Backup enabled in kiauh or do a manual backup from kiauh on a component. Components could by e.g. Klipper / Fluidd / KlipperScreen. Additional informationHello dw-0, I love you work on kiauh! I'm not sure if it's a bug or if it's intentionally implemented this way. I noticed I had two types of backup folders for kiauh: ~/kiauh-backups and ~/kiauh_backups. It's a subtle difference between - and _. I also looked at where this appeared in the source code. See below: kiauh-backups >>kiauh/core/menus/backup_menu.py kiauh_backups >>kiauh/core/services/backup_service.py Is this implemented this way on purpose? Perhaps I'm misunderstanding something. I'm curious about the logic behind it. |
Replies: 3 comments
|
Hi, thank you for your report. Users may have two folders in the end (depending on, if they used the backup function in the past already), so that's something that can be ignored tbh. But i understand that displaying the outdated path in the UI and saving backups to the new one is causing confusion. Thanks again. |
|
Thanks for the explanation and your quick response. Great work you're doing with Kiauh. So thank you for your efforts! |
|
@dw-0 I just took a manual backup today as I needed to reformat my Pi and it was named ~/kiauh-backups so something else might still be naming that differently than it's supposed to be! |
Hi, thank you for your report.
Good catch, i changed the backup directory to
~/kiauh_backups. That change was intentional during some refactoring of the backup mechanics, streamline the folder namings and so on and so forth. But what i missed was updating the path to the correct one in the print_menu function you correctly pointed out! Thank you for that, it was an oversight on my end and i will soon push a fix for that.Users may have two folders in the end (depending on, if they used the backup function in the past already), so that's something that can be ignored tbh. But i understand that displaying the outdated path in the UI and saving backups to the new one is causing confusion. Th…