Skip to content

Instantly share code, notes, and snippets.

@tadpol
Created October 16, 2023 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tadpol/adab3874924c1d317bb1902810d43f7a to your computer and use it in GitHub Desktop.
Save tadpol/adab3874924c1d317bb1902810d43f7a to your computer and use it in GitHub Desktop.
#!/bin/zsh
path+=(/opt/homebrew/bin /Applications/Arq.app/Contents/Resources/)
plans=($(arqc listBackupPlans 2>/dev/null | awk -F'[= \t]' '/UUID/ {print $2}'))
for plan in $plans; do
msg=$(arqc latestBackupActivityJSON $plan 2>/dev/null | jq -r '.message')
if [[ $msg == "Backing up"* ]]; then
echo yes
exit 0
fi
done
echo no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment