refactor(backups): update backup functions for config and moonraker database and enable backup-before-update again

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
th33xitus
2023-08-23 23:22:23 +02:00
parent 0497d49066
commit 9f410450d7
10 changed files with 42 additions and 42 deletions

View File

@@ -103,7 +103,7 @@ function install_gcode_shell_command() {
function create_example_shell_command() {
### create a backup of the config folder
backup_klipper_config_dir
backup_config_dir
local configs regex path
regex="${HOME//\//\\/}\/([A-Za-z0-9_]+)\/config\/printer\.cfg"
@@ -120,4 +120,4 @@ function create_example_shell_command() {
sed -i "1 i [include shell_command.cfg]" "${cfg}"
fi
done
}
}