Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backing up symbolic links #69

Closed
joshmikow opened this issue Feb 27, 2024 · 4 comments
Closed

Backing up symbolic links #69

joshmikow opened this issue Feb 27, 2024 · 4 comments

Comments

@joshmikow
Copy link

I got everything installed tonight and it went well. I'm liking having an easy backup after a scare this weekend when I thought I lost all of my configs I've been tweaking for the past month.

I noticed in the logs that it is skipping symbolic links which results in my printer_data/config/KAMP folder, mainsail.cfg and timelapse.cfg not being backed up. Is there a way to include these in the .env so they'll be backed up properly? I included the printer_data/config/KAMP folder specifically in the .env but it still skips the folder because it's a symbolic link.

My moonraker also shows the "Dirty" warning but it sounds like this should have been resolved. Not sure what to check to see if I missed a step on this part.

Thank you for the hard work put in to make this so easy for those of us who aren't sure where to start with backing up klipper easily.

@Tylerjet
Copy link
Collaborator

Tylerjet commented Feb 27, 2024

Symbolic links are not backed up as they are read only and cannot be modified within the mainsail or fluidd editor, files like mainsail.cfg and fluidd.cfg even note in their configs that the files are read only and the editor should not allow for them to be saved. Same goes with KAMP, the folder is read only as you should be making a KAMP_settings.cfg in the root of the config directory instead of modifying the read only files as those are overwritten after updating.

So those paths are not worth backing up since on a fresh install they would be added by default and they are overwritten after updates

@Tylerjet
Copy link
Collaborator

As for the dirty warning if you go to the klipper-backup folder and run git status it will tell you if there are any files that have been modified locally which is likely causing the dirty warning in moonraker

@joshmikow
Copy link
Author

Thank you for the explanation on the symbolic links. I didn't realize that was how they worked. I also wasn't aware of what .cfg gets rebuilt on install. Makes sense to me.

I also used the 'git status' and found that i had edited the .gitignore before I realized using the multiple lines in the .env for folders to backup. I restored it to the default and it looks to be good now.

Thank you for the quick response and explanations!

@Tylerjet
Copy link
Collaborator

No Problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants