mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-15 03:24:29 +05:00
fix: typo in moonraker backup function
This commit is contained in:
@@ -136,13 +136,13 @@ backup_fluidd(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
backup_moonraker(){
|
backup_moonraker(){
|
||||||
if [ -d $MOONRAKER_DIR ] && [ -d $MOONRAKER_ENV_DIR ]; then
|
if [ -d $MOONRAKER_DIR ] && [ -d $MOONRAKER_ENV ]; then
|
||||||
status_msg "Creating Moonraker backup ..."
|
status_msg "Creating Moonraker backup ..."
|
||||||
check_for_backup_dir
|
check_for_backup_dir
|
||||||
get_date
|
get_date
|
||||||
status_msg "Timestamp: $current_date"
|
status_msg "Timestamp: $current_date"
|
||||||
mkdir -p $BACKUP_DIR/moonraker-backups/"$current_date"
|
mkdir -p $BACKUP_DIR/moonraker-backups/"$current_date"
|
||||||
cp -r $MOONRAKER_DIR $_ && cp -r $MOONRAKER_ENV_DIR $_ && ok_msg "Backup complete!"
|
cp -r $MOONRAKER_DIR $_ && cp -r $MOONRAKER_ENV $_ && ok_msg "Backup complete!"
|
||||||
else
|
else
|
||||||
ERROR_MSG=" Can't backup moonraker and/or moonraker-env directory! Not found!"
|
ERROR_MSG=" Can't backup moonraker and/or moonraker-env directory! Not found!"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user