Add KlipperScreen to kiauh

This commit is contained in:
Jordan
2020-11-27 13:44:06 +00:00
parent 865177d0fd
commit 93f8e5e265
12 changed files with 287 additions and 35 deletions

View File

@@ -122,4 +122,18 @@ backup_octoprint(){
else
ERROR_MSG=" Can't backup OctoPrint and/or .octoprint directory!\n Not found!"
fi
}
}
backup_klipperscreen(){
if [ -d $KLIPPERSCREEN_DIR ] ; then
status_msg "Creating KlipperScreen backup ..."
check_for_backup_dir
get_date
status_msg "Timestamp: $current_date"
mkdir -p $BACKUP_DIR/klipperscreen-backups/"$current_date"
cp -r $KLIPPERSCREEN_DIR $_
ok_msg "Backup complete!"
else
ERROR_MSG=" Can't backup KlipperScreen directory!\n Not found!"
fi
}