How can I detect "restrict background data usage" for the current wireless network from a bash script in Ubuntu Linux?

I have a short bash script in my crontab to run a heavy network rclone backup task

In psuedocode:


if [ is_running ]; then
  exit 1;
  rclone command;

Which service, program or command will become true when I configure a network as "restricted background data" in the wireless administrator, so that I can add it to the bash script check and not execute the rclone command?

enter the description of the image here
Ubuntu 18.04, Gnome.