From cc24b2f53620f5940bd56abe39d9db4cd07e606a Mon Sep 17 00:00:00 2001 From: mrunknownde Date: Tue, 13 Jan 2026 19:29:20 +0100 Subject: [PATCH] New Backup on boot - 13/01/26 - 19:29:19 --- .gitignore | 9 ++++ README.md | 4 ++ printer_data/config/crowsnest.conf | 45 +++++++++++++++++ printer_data/config/moonraker.conf | 60 +++++++++++++++++++++++ printer_data/config/moonraker.conf.backup | 46 +++++++++++++++++ printer_data/config/printer.cfg | 14 ++++++ printer_data/config/shell_command.cfg | 7 +++ 7 files changed, 185 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 printer_data/config/crowsnest.conf create mode 100644 printer_data/config/moonraker.conf create mode 100644 printer_data/config/moonraker.conf.backup create mode 100644 printer_data/config/printer.cfg create mode 100644 printer_data/config/shell_command.cfg diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e55ca4e --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +.env +secrets.conf +*.swp +*.tmp +printer-[0-9]*_[0-9]*.cfg +*.bak +*.bkp +*.csv +*.zip diff --git a/README.md b/README.md new file mode 100644 index 0000000..a9be424 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# Klipper-Backup 💾 +Klipper backup script for manual or automated GitHub backups + +This backup is provided by [Klipper-Backup](https://github.com/Staubgeborener/Klipper-Backup). diff --git a/printer_data/config/crowsnest.conf b/printer_data/config/crowsnest.conf new file mode 100644 index 0000000..9dbe98c --- /dev/null +++ b/printer_data/config/crowsnest.conf @@ -0,0 +1,45 @@ +#### crowsnest.conf +#### This is the default config after installation. +#### It is also used as the default config in MainsailOS. +#### For details on how to configure this to your needs, see: +#### https://github.com/mainsail-crew/crowsnest/blob/master/README.md + + +##################################################################### +#### ##### +#### Information about ports and according URL's ##### +#### ##### +##################################################################### +#### ##### +#### Port 8080 equals /webcam/?action=[stream/snapshot] ##### +#### Port 8081 equals /webcam2/?action=[stream/snapshot] ##### +#### Port 8082 equals /webcam3/?action=[stream/snapshot] ##### +#### Port 8083 equals /webcam4/?action=[stream/snapshot] ##### +#### ##### +#### Note: These ports are default for most Mainsail ##### +#### installations. Using any other port would involve ##### +#### changing the proxy configuration or using URLs ##### +#### with the specific port like ##### +#### http://:/?action=[stream/snapshot] ##### +#### ##### +##################################################################### +#### RTSP Stream URL: ( if enabled and supported ) ##### +#### rtsp://:/stream.h264 ##### +##################################################################### + + +[crowsnest] +log_path: /home/johannes/printer_data/logs/crowsnest.log +log_level: verbose # Valid Options are quiet/verbose/debug +delete_log: false # Deletes log on every restart, if set to true +no_proxy: false # If set to true, no reverse proxy is required. Only change this, if you know what you are doing. + +[cam 1] +mode: ustreamer # ustreamer - Provides MJPG and snapshots. (All devices) + # camera-streamer - Provides WebRTC, MJPG and snapshots. (only RPiOS + RPi 0/1/2/3/4) +port: 8080 # HTTP/MJPG stream/snapshot port +device: /dev/video0 # See log for available devices +resolution: 640x480 # x format +max_fps: 15 # If hardware supports it, it will be forced, otherwise ignored/coerced. +#custom_flags: # You can run the stream services with custom flags. +#v4l2ctl: # Add v4l2-ctl parameters to setup your camera, see log for your camera capabilities. diff --git a/printer_data/config/moonraker.conf b/printer_data/config/moonraker.conf new file mode 100644 index 0000000..f47df6d --- /dev/null +++ b/printer_data/config/moonraker.conf @@ -0,0 +1,60 @@ +[server] +host: 0.0.0.0 +port: 7125 +klippy_uds_address: /home/johannes/printer_data/comms/klippy.sock + +[authorization] +trusted_clients: + 10.0.0.0/16 + 10.0.0.0/8 + 127.0.0.0/8 + 169.254.0.0/16 + 172.16.0.0/12 + 192.168.0.0/16 + FC00::/7 + FE80::/10 + ::1/128 +cors_domains: + *.lan + *.local + *://localhost + *://localhost:* + *://my.mainsail.xyz + *://app.fluidd.xyz + +[octoprint_compat] + +[history] + +[update_manager] +channel: dev +refresh_interval: 168 + +[update_manager mainsail] +path: /home/johannes/mainsail +repo: mainsail-crew/mainsail +channel: stable +type: web +persistent_files: + config.json + +[update_manager mainsail-config] +managed_services: klipper +origin: https://github.com/mainsail-crew/mainsail-config.git +path: /home/johannes/mainsail-config +primary_branch: master +type: git_repo + +# Crowsnest update_manager entry +[update_manager crowsnest] +type: git_repo +path: ~/crowsnest +origin: https://github.com/mainsail-crew/crowsnest.git +managed_services: crowsnest +install_script: tools/pkglist.sh +[update_manager klipper-backup] +type: git_repo +path: ~/klipper-backup +origin: https://github.com/Staubgeborener/klipper-backup.git +managed_services: moonraker +primary_branch: main \ No newline at end of file diff --git a/printer_data/config/moonraker.conf.backup b/printer_data/config/moonraker.conf.backup new file mode 100644 index 0000000..bec08ac --- /dev/null +++ b/printer_data/config/moonraker.conf.backup @@ -0,0 +1,46 @@ +[server] +host: 0.0.0.0 +port: 7125 +klippy_uds_address: /home/johannes/printer_data/comms/klippy.sock + +[authorization] +trusted_clients: + 10.0.0.0/16 + 10.0.0.0/8 + 127.0.0.0/8 + 169.254.0.0/16 + 172.16.0.0/12 + 192.168.0.0/16 + FC00::/7 + FE80::/10 + ::1/128 +cors_domains: + *.lan + *.local + *://localhost + *://localhost:* + *://my.mainsail.xyz + *://app.fluidd.xyz + +[octoprint_compat] + +[history] + +[update_manager] +channel: dev +refresh_interval: 168 + +[update_manager mainsail] +path: /home/johannes/mainsail +repo: mainsail-crew/mainsail +channel: stable +type: web +persistent_files: + config.json + +[update_manager mainsail-config] +managed_services: klipper +origin: https://github.com/mainsail-crew/mainsail-config.git +path: /home/johannes/mainsail-config +primary_branch: master +type: git_repo diff --git a/printer_data/config/printer.cfg b/printer_data/config/printer.cfg new file mode 100644 index 0000000..1f66e82 --- /dev/null +++ b/printer_data/config/printer.cfg @@ -0,0 +1,14 @@ +[include mainsail.cfg] +[mcu] +serial: /dev/serial/by-id/ + +[virtual_sdcard] +path: /home/johannes/printer_data/gcodes +on_error_gcode: CANCEL_PRINT + +[printer] +kinematics: none +max_velocity: 1000 +max_accel: 1000 + +[include shell_command.cfg] diff --git a/printer_data/config/shell_command.cfg b/printer_data/config/shell_command.cfg new file mode 100644 index 0000000..34e7581 --- /dev/null +++ b/printer_data/config/shell_command.cfg @@ -0,0 +1,7 @@ +[gcode_shell_command hello_world] +command: echo hello world +timeout: 2. +verbose: True +[gcode_macro HELLO_WORLD] +gcode: + RUN_SHELL_COMMAND CMD=hello_world \ No newline at end of file