Add moonraker-telegram-bot to kiauh

This commit is contained in:
Evgenii
2021-09-11 00:50:41 +03:00
parent 89dc6d2d14
commit e2407b3a92
12 changed files with 241 additions and 20 deletions

View File

@@ -179,3 +179,17 @@ backup_klipperscreen(){
ERROR_MSG=" Can't backup KlipperScreen directory!\n Not found!"
fi
}
backup_klipperscreen(){
if [ -d $MOONRAKERTELEGRAMBOT_DIR ] ; then
status_msg "Creating moonraker-telegram-bot backup ..."
check_for_backup_dir
get_date
status_msg "Timestamp: $current_date"
mkdir -p $BACKUP_DIR/moonraker-telegram-bot-backups/"$current_date"
cp -r $MOONRAKERTELEGRAMBOT_DIR $_
ok_msg "Backup complete!"
else
ERROR_MSG=" Can't backup KlipperScreen directory!\n Not found!"
fi
}