Closed midikeyboard closed 7 months ago
I'm a little bit confused about this PR.
First: This line find "$HOME/printer_data/config/" -name "printer-[0-9]*_[0-9]*.cfg" -delete
will just delete all "printer.cfg" files. Thats it. No other files.
Second: If you pushed some backups into your repository and you don't want them anymore, simply remove them from the .env
file. For example, you pushed two backups into you repository like this:
path_klipperdata1=printer1/printer_data/config/*
path_klipperdata2=printer2/printer_data/config/*
and you dont want the files from printer2 anymore, simply remove the second line from .env
. Running the script a second time will remove it from the repository.
In case you just want to get rid of all those printer.cfg files, simply run a cronjob or something like that for this purpose. This script is not conceived to do something like this.
i found myself scrolling through the endless list of backups (yes i know i can hide them) and wanted to get rid of it since i was using this splendid script. figured i could combine the two.