fix: add missing fluidd backup function

This commit is contained in:
th33xitus
2020-12-21 19:08:26 +01:00
parent 7854fe3d95
commit a6bfb30235
2 changed files with 29 additions and 9 deletions

View File

@@ -97,6 +97,19 @@ backup_mainsail(){
fi
}
backup_fluidd(){
if [ -d $FLUIDD_DIR ]; then
status_msg "Creating Fluidd backup ..."
check_for_backup_dir
get_date
status_msg "Timestamp: $current_date"
mkdir -p $BACKUP_DIR/fluidd-backups/"$current_date"
cp -r $FLUIDD_DIR $_ && ok_msg "Backup complete!"
else
ERROR_MSG=" Can't backup fluidd directory! Not found!"
fi
}
backup_moonraker(){
if [ -d $MOONRAKER_DIR ] && [ -d $MOONRAKER_ENV_DIR ]; then
status_msg "Creating Moonraker backup ..."