Staubgeborener / Klipper-Backup

Klipper-Backup is a script for manual or automated Klipper GitHub backups. It's Lightweight, pragmatic and comfortable.
https://klipperbackup.xyz
299 stars 58 forks source link

Split .env file into seperate files for future restore use #92

Closed DrFate09 closed 7 months ago

DrFate09 commented 7 months ago

Is your feature request related to a problem? Please describe.

I successfully set up the plugin today and it is working great! I did have an idea while I was working on modifying my .env file to include some path includes and excludes....

Describe the solution you'd like

Could we split the current .env file into two seperate files?

The first .env would house the "secrets" (aka GitHub token and personal info) and the second .env would include the path includes and excludes.

If this could be done, we could backup the paths. env file for future restores (if our HDD dies) so we would not need to rebuild it but still keep the "secrets" .env file off of GitHub (so it would not be included in the backup).

Describe alternatives you've considered

Is this possible (I'm not a developer)?

Additional information

No response

Tylerjet commented 7 months ago

Restore functionality is my next little project plan (Once Staubgeborener and I are done mucking around with the installer script and Kiauh support) just not sure when i will get to it, but likely a part of the process will be creating a config file that is generated by pulling data from the .env instead of splitting them and then using that config file when restoring.

With the new installer release it will be changing the path variables in the .env to a singular path array which will make extracting parts of the .env miles easier.

Proof of concept: image