Skip to content

Instantly share code, notes, and snippets.

@tadpol
Created October 16, 2023 17:11
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
#!/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