This Klipper Add-on Could Save You! (Klipper-Backup)

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 มิ.ย. 2024
  • Love the channel? Consider supporting me on Patreon:
    www.patreon.com/user?u=806627
    Get Great Filament From PolyMaker & Help Support The Channel:
    bit.ly/3P5MRD7
    Klipper Backup Github Project:
    github.com/Staubgeborener/kli...
    Documentation for project:
    staubgeborener.github.io/klip...
    If you have issues copying any of the commands from the description, you can also find them in the official documentation:
    staubgeborener.github.io/klip...
    Commands to copy for Klipper Backup:
    sudo apt update
    sudo apt install git
    git clone github.com/Staubgeborener/kli... && chmod +x ./klipper-backup/script.sh && cp ./klipper-backup/.env.example ./klipper-backup/.env
    cd klipper-backup && nano .env
    ./script.sh
    Commands to copy for KIAUH:
    cd ~ && git clone github.com/dw-0/kiauh.git
    ./kiauh/kiauh.sh
    ModBot Merch Store is now live! Get yours here:
    bit.ly/3qhJ8Yl
    Join the official ModBotArmy discord server: / discord
    In today's video we take a look at an awesome addon for Klipper called Klipper Backup. This is a script created by Staubgeborener that once setup will upload your entire Klipper config to github with the press of a button. We go step by step through the process of getting it setup. This is something I plan to start doing to every printer to prevent accidentally losing my config due to hardware failure.,
    (´∀`)♡ As an Amazon Associate I earn from qualifying purchases:
    Buy now on Amazon: amzn.to/2jQAOgV
    Subscribe To My 3d Printing Blog! :
    Lets Get Social!
    Facebook: / dopesoner930
    Twitter: / modbotarmy
    Instagram: / modbotarmy
    Twitch: / dopesoner930

ความคิดเห็น • 79

  • @ModBotArmy
    @ModBotArmy  4 หลายเดือนก่อน +3

    TH-cam seems to have butchered one of the commands in the description. If you have issues with copying and pasting any of the commands you can also find them in the official documentation here: staubgeborener.github.io/klipper-backup/quickstart/

  • @thewritingengineer
    @thewritingengineer 25 วันที่ผ่านมา

    THIS is what TH-cam is for. Thank you so much for this video. I use Linux on my PC for everyday use and I found the documentation for Klipper on Git to be exceptionally obtuse. Thank you so much for clarifying literally every questions I was asking.

  • @TheOfficialOriginalChad
    @TheOfficialOriginalChad 4 หลายเดือนก่อน +14

    Another tip: Document your changes! You solve a lot of problems that you or someone else will need to solve again one day. You may have a config that solves it on one printer, but you can’t just copy it to another printer. Don’t rely on your silly human memory!

    • @admiraladama5877
      @admiraladama5877 4 หลายเดือนก่อน

      I have a git repo for this with commit messages explaining the gist of changes I’m making
      In my case I have a script that pulls down the config files but this could be used with any number of merge/pukls methods to do the same

    • @TheOfficialOriginalChad
      @TheOfficialOriginalChad 4 หลายเดือนก่อน

      @@admiraladama5877 care to share?

  • @mghumphrey
    @mghumphrey 27 วันที่ผ่านมา

    One small security tip: The personal access token (PAT) you created can be used to make changes to any of your repositories. To fix this, when you create the PAT, there is an option there "Fine-grained tokens". Select that option. When creating the token, for "Repository Access" choose "Only select repositories", and then add the repository you just created for the backups. For permissions, expand the "Repository permissions" section and grant read and write permission for "Contents". Those are the only permissions that the script needs. Also, when you're editing the .env value, you can create the setting "commit_username=xxxx", and set xxxx to any value you want (doesn't have to be any kind of user you create). This will just make commits from the script show up under that name. This is useful to distinguish commits from the script from any commits you make yourself.

  • @reprinted3D
    @reprinted3D 4 หลายเดือนก่อน +4

    Another SUPER helpful video, Daniel. You continue to show werk-after-week why yours is one of the most valuable 3D printing channels on TH-cam!
    Thank you for what you do.

    • @ModBotArmy
      @ModBotArmy  4 หลายเดือนก่อน

      Thank you very much for the kind words :)!! I really hope this helps others. Losing a config and having to start over can be such a painful process.
      Have a great weekend!

  • @YourBuddyDinec
    @YourBuddyDinec 4 หลายเดือนก่อน +1

    Backing up your klipper machine is super important. Glad your teaching people how to do it easier

  • @JamesTenniswood
    @JamesTenniswood 4 หลายเดือนก่อน

    I set this up last week. Works so well, as you can see the version history too 🎉

  • @Deadlypen859
    @Deadlypen859 3 หลายเดือนก่อน

    wonderful video that perfectly shows what to do to install the backup, thank you so much for making this easy

  • @arminth
    @arminth 4 หลายเดือนก่อน

    Always wanted to do this. Thanks for pushing me to install it on both of my machines!

  • @JamesTenniswood
    @JamesTenniswood 4 หลายเดือนก่อน +2

    I wish backup was part of kiauh, as its such a useful tool

  • @paulstephenson5311
    @paulstephenson5311 3 หลายเดือนก่อน

    Thank you for this.
    This is something that I've been meaning to do for a long time.
    Your video provided the perfect guide.

  • @Kev7274
    @Kev7274 4 หลายเดือนก่อน

    i've used this for a while now. Has saved me a couple of times.

  • @substratum3d
    @substratum3d 3 หลายเดือนก่อน

    Very nice. I've been manually backing up all my klipper instance to github via ssh from day 1. This script will make it even easier though so I'm gonna switch over to it. Thanks for the video!

  • @AdrianSchwizgebel
    @AdrianSchwizgebel 4 หลายเดือนก่อน

    Thank you very much, your video made it very easy to install! I'm currently building my first Voron and I hope this precaution will never be used ;)

  • @tsarrr
    @tsarrr 10 วันที่ผ่านมา

    brilliant video and so easy to follow. Keep up the great content!

  • @EtherealProject3D
    @EtherealProject3D 4 หลายเดือนก่อน

    This is supper cool and helpful, thank you. I might just have to show this off in a livestream. Thank you.

  • @NickyThijs-hc9uq
    @NickyThijs-hc9uq 4 หลายเดือนก่อน +1

    Man this just saved me today.. I added the feature few hours after this video released and guess what... 24hrs later my printer its SD-card died,. Thanks to you no config is lost... 🙂

  • @SeanTaffert
    @SeanTaffert 4 หลายเดือนก่อน

    Good info! I need this.... we all need this.

  • @bobbydigital9323
    @bobbydigital9323 4 หลายเดือนก่อน

    This is neat. I have gites running on my homelab so I will have to try this out.

  • @Armor3dprinting
    @Armor3dprinting 4 หลายเดือนก่อน

    Thank you for this.

  • @user-py2rc8ox3i
    @user-py2rc8ox3i 4 หลายเดือนก่อน

    i am now all backed up.... thanks!

  • @VitalyBrusentsev
    @VitalyBrusentsev 4 หลายเดือนก่อน

    Thanks - a great tip, following it now!
    Please note that TH-cam mangled the Github link in that "git clone" command that you've shared, so some folks might have issues copying it.

    • @ModBotArmy
      @ModBotArmy  4 หลายเดือนก่อน

      Thanks for the heads up! I just posted a pinned comment with the link directly to the official docs for anyone having issues.

  • @Charlie-pw3yg
    @Charlie-pw3yg 4 หลายเดือนก่อน

    Thanks for the video.

  • @AaronTurner-pc5dh
    @AaronTurner-pc5dh 3 หลายเดือนก่อน

    I am glad you did a video of this! Great help and much easier to backup. I'm now wondering how to populate my 3d printer cfg files via Github? like when you upload AutoZ or KAMP

  • @PandaTaco
    @PandaTaco 2 หลายเดือนก่อน

    PSA for those using KIAUH with multiple Klipper instances.
    On the .env file you'll need to change or add or change the default path:
    path_klipperdata=printername_data/config*
    With KIAUH, the printer_data/config folder only has minimal configuration files that are shared through the instances.

    • @bcuttytv
      @bcuttytv หลายเดือนก่อน

      hey i'm trying to figure this out myself now, how would i go about multiple instances? have the machine dump all configs to one repo or each machine to a different repo?

  • @jeremiwebb7519
    @jeremiwebb7519 4 หลายเดือนก่อน

    I haven’t read the docs yet but we should be able to automate this with a cron job to run this script periodically

  • @lethalp1mp
    @lethalp1mp 4 หลายเดือนก่อน +2

    Another option is to use a cronjob on the kilpper host to run this. No need to remember to press a macro button or ssh to the klipper host. Set it to run daily/weekly, etc.

  • @AcidNightx
    @AcidNightx 3 หลายเดือนก่อน +1

    Hello, thank you for this tutorial which is in place on my klipper, however, what do we do afterwards, if we have a problem with an update, we just have to redo the files and copy/paste, but if the transition from klipper to a version n Isn't it good how to go back?
    I have a really difficult card to flash, a K lerdge, and their procedure is wrong, impossible to flash ourselves and I was forced to use their .bin and therefore I am stuck at a certain version of klipper or the bed-mesh is installed, but not yet adaptive and therefore impossible to do it because KAMP conflicts with it and that of klipper is read-only... I have to upgrade it for that but if my card no longer works after that I'm stuck...

  • @bami2
    @bami2 4 หลายเดือนก่อน

    Not just a config file, just create an image of the entire SD card. If the card bites the dust you're just a new card and a write of the image away from just continuing.

  • @Bigpopp1
    @Bigpopp1 4 หลายเดือนก่อน

    I wish I knew this existed previously because I just had my sd card fail on my Mercury 1. Thanks for sharing. Also thinking about investing in a ssd hat for the pi. Does anyone recommend this to reduce the chance of a sd card failure?

  • @whyme6742
    @whyme6742 2 หลายเดือนก่อน

    I automated my backup to be every week using a delayed_gcode running the shell script on every restart of klipper.
    I wrote my own shell script, it stores the date of the backup to a txt file and checks if more than a week has passed. For the button in mainsail UI, i added a force parameter to the script, so a button press will always update the config, while the delayed_gcode will run without the force parameter and only update onve a week.

  • @Todestelzer
    @Todestelzer 2 หลายเดือนก่อน

    With fluid you can select all files with one click and zip it. Then download it manually. I do this after I did changes to my configs every time.

  • @SpitfireFOOL80
    @SpitfireFOOL80 4 หลายเดือนก่อน

    Thank you ModBot for this great tip!
    DO NOT RUN KIAH for installing during a print. The Putty/SSH work is find, but KIUAH WILL stop your klipper service. (This you can put a note on the video pop ups?) I should've known better but great guide and I can't wait to use klipper for more QoL upgrades like this.
    Do you have any recommendations for klipper becoming unreachable and only ever to solve it after a reboot to the entire printer? Hoping there is some auto config to check if there's an active print, and when not, restart the pi and klipper every so often.

  • @lucidnonsense
    @lucidnonsense 4 หลายเดือนก่อน

    For some reason, the shell_command.cfg file was not created for me after installing the shell command extension via the kiauh steps you noted. I added the macro to my printer.cfg file and it works as intended. Hope this helps someone.

  • @Abyssaal1
    @Abyssaal1 4 หลายเดือนก่อน

    Cool

  • @bp8__163
    @bp8__163 4 หลายเดือนก่อน +1

    Hey, thanks for the video. Is anyone else getting the prompt to log into github while using the clone command? i put in my username and password then it says that password authentication was removed aug 13, 2021.

  • @unlock-er
    @unlock-er หลายเดือนก่อน +1

    this vid has been very useful, thanks. but I think it is now obsolete as the process is now very automated with script made by staubgeborener

  • @Thisdudechannel
    @Thisdudechannel 3 หลายเดือนก่อน

    Can you do a video about setting up klippain?

  • @makergc3d
    @makergc3d 11 วันที่ผ่านมา

    Added this backup method. The backup appears to have been updated since this video was created. There are now setup Qs for enabling backup on change of a cfg file, on boot, etc. One thing not explained in the video is how to restore a cfg file from the git repository to the Klipper machine cfg files. I tried copy a cfg file contents from git and paste to the Klipper machine file. This did not work. Scatching my head on how to use contents of git repository to restore cfg files to Klipper machine cfg files in the event a motherboard needs to be replaced or a decision is made to upgrade.

  • @teemo_fpv
    @teemo_fpv 3 หลายเดือนก่อน

    What Printer is this on the right @0:35 ? is there info about the Z-Setup ? i was searching for something like that for my setup 😇

  • @Rockstar1974lol
    @Rockstar1974lol 4 หลายเดือนก่อน

    my printer config didnt save, any idea what could be the problem? im running an elegoo is that makes a difference

  • @vetulamortem
    @vetulamortem 4 หลายเดือนก่อน

    The commands for pulling the repo in the description dont work at least for me it cuts off the repo name after klip, to fix that open the repo over the hyperling and copy it out of the url and replace the broken one. I think this is either an issue with how youtube shortens hyperlinks in the description or my Browser, idk not gonna install another browser to find out. XD

  • @missile1506
    @missile1506 4 หลายเดือนก่อน

    How does this work if you have multiple instances of Klipper installed on one Pi or one BTT7 pad? Do you just run the install script one time and the cfg file appears in all Klipper instances?

  • @marlboromage
    @marlboromage 3 หลายเดือนก่อน

    Make sure when you create your new repository that you don’t put a readme or license in it. I had push issues until I deleted the readme.

    • @KittenRaee
      @KittenRaee 3 หลายเดือนก่อน

      git push -f

  • @stefi300972
    @stefi300972 2 หลายเดือนก่อน

    cant find the shell script command anywhere, searched the pages in the links many times,

  • @Thisdudechannel
    @Thisdudechannel 4 หลายเดือนก่อน

    is it possible to save mainsail config also?

  • @aokiomar256
    @aokiomar256 4 หลายเดือนก่อน

    I splice my micro SD 1 month ago and lost everything (5 years of configurations), didn't have a backup

  • @markwilliams5654
    @markwilliams5654 4 หลายเดือนก่อน +1

    Klipper 12 messed up my calibration

  • @jeffm2787
    @jeffm2787 2 หลายเดือนก่อน

    I just do the top select all checkbox and download, it creates a zip file with everything. I toss that on a NAS and sleep easy.

  • @jerseybarrier64
    @jerseybarrier64 4 หลายเดือนก่อน

    Well, got close but ran in to an issue. When I go in the klipper-backup nano .env command there is nothing showing for me to add my git up info? not sure where I went wrong, but is there a way to wipe this clean and start over?
    I did get this message when loading things initially.
    Cloning into 'klipper-backup'...
    remote: Enumerating objects: 623, done.
    remote: Counting objects: 100% (238/238), done.
    remote: Compressing objects: 100% (80/80), done.
    remote: Total 623 (delta 185), reused 177 (delta 149), pack-reused 385
    Receiving objects: 100% (623/623), 1.34 MiB | 2.51 MiB/s, done.
    Resolving deltas: 100% (290/290), done.
    cp: cannot stat './klipper-backup/env.example': No such file or directory

    • @ModBotArmy
      @ModBotArmy  4 หลายเดือนก่อน

      Are you saying you don’t have an .env file? Or yours is blank? If you don’t have an env file it sounds like the main larger command may not have installed properly. If it’s there but blank there and odd one. I deleted my directory once by ftping in and deleting the klipper back up folder.
      There are also commands that will let you delete it from the terminal:
      www.freecodecamp.org/news/how-to-delete-a-file-or-directory-in-linux/

    • @jerseybarrier64
      @jerseybarrier64 4 หลายเดือนก่อน

      @@ModBotArmy I believe what you are asking is when I go in to the place to enter the repository info and key, all I show is GNU nano 5.4 .env with nothing below it. :-( . One other note, was tuff to cut and paste the large command due to it being cut off by TH-cam. Guess only way to fix is find file and delete?

    • @jerseybarrier64
      @jerseybarrier64 4 หลายเดือนก่อน

      OK, Thanks for the link. I used the rm - r command to clean things and try again. This time I was successful and it appears everything has backed up. I'll take a breather and give the macro option a try tomorrow. ;-). Thank you so much for your help and I am slowly learning Klipper with your help. Great resource.

  • @edwardmcrichy2985
    @edwardmcrichy2985 4 หลายเดือนก่อน

    How do you do this for multiple instances of Klipper on one device?

    • @KittenRaee
      @KittenRaee 3 หลายเดือนก่อน

      Edit .env and include other folders

  • @DuncanHopkins
    @DuncanHopkins 3 หลายเดือนก่อน

    A more flexible way is very similar, just don't use the scripts. You can manually handle the git repo in an ssh session. This would then let you comment, branch, revert changed as you like.
    Learning how to use git from the command line would also allow many other things 'downloaded' from github to be directly managed by git instead.

  • @kentsangcanada
    @kentsangcanada 4 หลายเดือนก่อน

    Beard is getting thick and bushy like Nero and Steve… is it because too busy with the new house’s garage studio?

    • @ModBotArmy
      @ModBotArmy  4 หลายเดือนก่อน +1

      Haha yess! I need a haircut and a trim of the beard I just haven’t had a window. Hopefully in the next week or so.

  • @Thisdudechannel
    @Thisdudechannel 4 หลายเดือนก่อน +1

    your git hub copy and paste link needs to be updated.. it doesn't work because of the "kli..."

  • @diablodaub
    @diablodaub 2 หลายเดือนก่อน

    Question... Can I just set my token to never expire?

    • @ModBotArmy
      @ModBotArmy  2 หลายเดือนก่อน +1

      It doesn’t appear so 😕. I imagine it’s some sort of security thing but I would totally do the same.

    • @diablodaub
      @diablodaub 2 หลายเดือนก่อน

      I was able to set it to “no expiration” it’s the last option under “custom” they just warn you about a security risk. I’d check it out!

    • @ModBotArmy
      @ModBotArmy  2 หลายเดือนก่อน

      @@diablodaub good to know! Thanks for the feedback 👍

  • @jacobmurray3621
    @jacobmurray3621 4 หลายเดือนก่อน

    I wish I had this. My child erased my CFG playing with the keyboard cause I left it open

  • @cambouiscom
    @cambouiscom 4 หลายเดือนก่อน +1

    Simplest approach is a Samba share : ctrlC-ctrlV from the remote OS to a Windows folder and vice-versa. Most efficient backup is a ISO, as it later can be opened using 7zip, a Linux virtual machine, or be restored using the last known good configuration. Moreover, a Samba share allows for editing config files with your prefered editor : VS, Notepad++, etc... Never used backup utilities on 3D printers, Octoprint or Klipper.

  • @chuckthetekkie
    @chuckthetekkie 4 หลายเดือนก่อน

    I would much rather not have my configuration files on the internet. I prefer offline only backups. I just don't like cloud based stuff as I don't have control of the computers storing my data.
    You also have to pay if you want your repository private.

  • @ciaduck
    @ciaduck 4 หลายเดือนก่อน +3

    Maybe you don't want a public repo? I'm fairly certain that one of those configs has your wifi password in it.
    Fairly cool to back stuff up this way, but just be aware of the security implications.

  • @audaxxx4202
    @audaxxx4202 2 หลายเดือนก่อน

    🖨🖨🖨🖨❤🤟