Comments (6)
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.
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.
Try the following, step by step:
- Create a repository on GitHub for your backup files (i think you already did that)
- Clone your repository:
cd ~ && git clone https://github.com/simpat1zq/elf
- Go into your repository:
cd ./elf
- Copy all files from this script in your own repository:
cp * ~/klipper-backup/ .
- Make the script executable:
chmod +x ./script.sh
- 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.
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.
This issue is stale because it has been open for 30 days with no activity.
from klipper-backup.
This issue was closed because it has been inactive for 14 days since being marked as stale.
from klipper-backup.
Related Issues (20)
- [Bug]: Script asks for password HOT 9
- [Bug]: HOT 28
- [Bug]: HOT 17
- Custom README.md HOT 4
- Skript asks for password after update to newest version HOT 7
- Backing up symbolic links HOT 4
- Error when Uploading - fatal: not a git repository HOT 15
- cp: unrecognized option '--parents' HOT 5
- Primary setup command doesn't work HOT 12
- (RESOLVED) fatal: loose object, and related errors HOT 16
- Simple way to change the service-name, listed in Mainsail? HOT 9
- Lost Network Access HOT 2
- Add ability to backup composed configuration that are using [included ...cfg] files. HOT 7
- [Bug]: HOT 22
- Created two users? HOT 3
- Security issue - telegram bot conf HOT 4
- Add Restore Script HOT 2
- Does not back up symbolic links like those used by ERCF HOT 3
- Backup omits directories starting with a `.` HOT 14
- Split .env file into seperate files for future restore use HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from klipper-backup.