Coder Social home page Coder Social logo

Comments (6)

Staubgeborener avatar Staubgeborener commented on August 26, 2024

Sorry for the late reply, I am currently moving my apartment.

Is there a .env file in your klipper-backup folder and if so, did you edit the content inside so it match with your repository name and your GitHub token?

Please do a ls -la /home/pi/klipper-backup and post the result here. Please also post the content of your .env file (just hide the token part).

from klipper-backup.

simpat1zq avatar simpat1zq commented on August 26, 2024

Yes. The token is in the .env file.

pi@coreception:~/klipper-backup $ ls -la
total 40
drwxr-xr-x 4 pi pi 4096 May 21 11:06 .
drwxr-xr-x 32 pi pi 4096 May 20 06:33 ..
-rw-r--r-- 1 pi pi 866 May 17 12:39 .env
-rw-r--r-- 1 pi pi 843 Apr 4 08:55 .env.example
drwxr-xr-x 7 pi pi 4096 May 21 11:06 .git
-rw-r--r-- 1 pi pi 17 Apr 4 08:55 .gitignore
-rwxr-xr-x 1 pi pi 1902 Apr 4 08:55 install.sh
drwxr-xr-x 2 pi pi 4096 May 21 11:06 klipper
-rwxr-xr-x 1 pi pi 902 Apr 4 08:55 script.sh
-rw-r--r-- 1 pi pi 5 Apr 4 08:55 version

pi@coreception:~/klipper-backup $ more .env
github_token=token goes here
github_username=simpat1zq
github_repository=coreception

path_printercfg=/home/pi/klipper_config/printer.cfg
path_mainsailcfg=/home/pi/klipper_config/mainsail.cfg
path_moonrakercfg=/home/pi/klipper_config/moonraker.conf
path_timelapsecfg=/home/pi/klipper_config/timelapse.cfg
path_telegramcfg=/home/pi/klipper_config/telegram.conf
path_crowsnestcfg=/home/pi/klipper_config/crowsnest.conf
path_adxlcfg=/home/pi/klipper_config/adxl.cfg
path_pacalcfg=/home/pi/klipper_config/pa_cal.cfg
path_getprobelimitcfg=/home/pi/klipper_config/GET_PROBE_LIMITS
.cfg
path_savedvariablescfg=/home/pi/klipper_config/saved_variables
.cfg
path_pa_flow_calibratecfg=/home/pi/klipper_config/pa_flow_cali
brate.cfg
path_soundscfg=/home/pi/klipper_config/sounds.cfg
path_macroscfg=/home/pi/klipper_config/macros.cfg

backup_folder=klipper
pi@coreception:~/klipper-backup $

from klipper-backup.

Staubgeborener avatar Staubgeborener commented on August 26, 2024

Try the following, step by step:

  1. Create a repository on GitHub for your backup files (i think you already did that)
  2. Clone your repository: cd ~ && git clone https://github.com/simpat1zq/elf
  3. Go into your repository: cd ./elf
  4. Copy all files from this script in your own repository: cp * ~/klipper-backup/ .
  5. Make the script executable: chmod +x ./script.sh
  6. Run the script: ./script.sh

If you get an error, please replace the line git rm -rf --cached "$parent_path"/.env with

git filter-branch --force --index-filter \
  'git rm -r --cached --ignore-unmatch "$parent_path"/.env' \
  --prune-empty --tag-name-filter cat -- --all

in script.sh. I already did that with the commit 6dc586a. Try to re-run the script ./script.sh.

Btw, i recognize, that the klipper paths have changed. So instead of /home/pi/klipper_config/[...] it should be /home/pi/printer_data/config/[...]. But check this for yourself before editing.

from klipper-backup.

Staubgeborener avatar Staubgeborener commented on August 26, 2024

I decided to create a wiki that provides detailed step-by-step instructions.

In this concrete context, this would be the interesting part for you.

from klipper-backup.

github-actions avatar github-actions commented on August 26, 2024

This issue is stale because it has been open for 30 days with no activity.

from klipper-backup.

github-actions avatar github-actions commented on August 26, 2024

This issue was closed because it has been inactive for 14 days since being marked as stale.

from klipper-backup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.