Check Dropbox CLI / dropbox.py status via cron / bash script

I’ve been using the command line (CLI) version of Dropbox on my Centos 6.5 server as an offsite backup and it has been working well, the recent 1TB storage upgrade makes this a decent backup option.

One problem I’ve been having is that sometimes the Dropbox process seems to die, I tried several different scripts to keep track of the status of dropbox via the dropbox.py python scripts but I eventually found this bash script to work. I’ve set it as an hourly cron job in /etc/cron.hourly and it’s working well so far.

Continue readingCheck Dropbox CLI / dropbox.py status via cron / bash script