Staubgeborener / Klipper-Backup

Klipper-Backup is a script for manual or automated Klipper GitHub backups. It's Lightweight, pragmatic and comfortable.
https://klipperbackup.xyz
287 stars 56 forks source link

Docs #58

Closed Tylerjet closed 8 months ago

Tylerjet commented 8 months ago

update automation.md to include file watching service, also make on-boot service more distinguished as klipper-backup-on-boot.service instead of klipper-backup.service

Tylerjet commented 8 months ago

Making as a draft cause of course now the image doesn't want to be in the correct spot

Staubgeborener commented 8 months ago

I love the commit messages

Tomblarom commented 8 months ago

Unfortunately I'm running into issues with the inotify service:

pi@rpi3-3d-ender:~ $ sudo systemctl status klipper-backup-filewatch.service
● klipper-backup-filewatch.service - Klipper Backup Filewatch Service
   Loaded: loaded (/etc/systemd/system/klipper-backup-filewatch.service; enabled; vendor preset: enabled)
   Active: inactive (dead)

Feb 25 12:38:16 rpi3-3d-ender systemd[1]: klipper-backup-filewatch.service: Succeeded.
Feb 25 12:38:49 rpi3-3d-ender systemd[1]: Started Klipper Backup Filewatch Service.
Feb 25 12:38:49 rpi3-3d-ender bash[987]: inotifywait: invalid option -- 'P'
Feb 25 12:38:49 rpi3-3d-ender systemd[1]: klipper-backup-filewatch.service: Succeeded.

Edit: Removing P does not solve it. inotifywait 3.14 on Raspbian 10.

Tomblarom commented 8 months ago

Additionally the script could be altered to fed the exclude list from .env into exclude_pattern as well. 😉

Staubgeborener commented 8 months ago

This script is using the newest inotify version (version > 4), see this post.