"$backup_name")
echo "ℹ️ INFO: last backup dir path $last_backup_dir_path"
- backup_remotes "$backup_full_path" "$last_backup_dir_path"
- make_history "$backup_path"
- check_backup_date
- cleanup_backups "$backup_path" "$backup_name" $backup_count
+ backup_remotes "$backup_full_path" "$last_backup_dir_path" || return $?
+ make_history "$backup_path" || return $?
+ check_backup_date || return $?
+ cleanup_backups "$backup_path" "$backup_name" $backup_count \
+ || return $?
echo "✅ SUCCESS: backup"
}