Created
February 15, 2018 20:25
-
-
Save jakebathman/3826d4f2f53665e810bb37926a35f969 to your computer and use it in GitHub Desktop.
Determine if Backblaze is currently backing up files on macOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This will look at the overviewstatus.xml file and | |
# determine if Backblaze is currently transmitting a file. | |
# | |
# Developed against: | |
# macOS 10.13.3 | |
# Backblaze 5.2.0.172 | |
BBSTATUS='/Library/Backblaze.bzpkg/bzdata/overviewstatus.xml' | |
if ggrep -iqP 'cur\_state=\"transmitting\" current\_file=\"(?!Producing File Lists)' "$BBSTATUS"; then | |
echo 1; | |
else | |
# 1 = false | |
echo 0; | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment