Posts Tagged “backups”

Scriptable Backups with Arq

I’ve been using Arq for my backups for several months now and have regular backups being pushed to both Amazon Cloud Drive and AWS. A big part of Arq’s appeal is it’s flexibility, configurability and the wide array of backup destinations it supports. In short, it allows you to own and control your backups.

In addition to being a wonderfully designed app, Arq ships with a handy command line utility that lets you pause, resume and otherwise control your backups using simple commands named for the app. In order to use these commands, however, you need to include the executable in your shell’s path variable.

To accomplish this, I symlinked the Arq executable in to usr/local/bin. If /usr/local/bin isn’t in your path, you can add it by adding the following to your .bashrc, .bash_profile or what have you:

export PATH=$PATH:/usr/local/bin

Next, symlink the Arq executable:

sudo ln -s /Applications/Arq.app/Contents/MacOS/Arq /usr/local/bin/Arq

Next, open up a new shell and try the following:

Arq pause 60
Arq resume

Now you can easily control your backups from your CLI of choice or even script them from apps like Alfred or Control Plane (context sensitive backups anyone?).

Automatic Feedbin subscription backups

A few weeks ago I switched from Fever. to Feedbin. I had been using Fever on a shared hosting account and, over the long term, was proving to be slower than I had expected it to be. So far Feedbin has proven to be considerably faster than my old Fever install and appears to be more actively developed (I’ve also been able to use Jared Sinclair’s Unread — it’s fantastic).

I plan on sticking with Feedbin as my RSS service, but also wanted to make sure I kept a backup of all the feeds I subscribe to just in case anything happens to change. Rather than manually exporting a JSON backup of my feeds on a regular basis, I threw together the following shell script to download the JSON file via Feedbin’s API and save it to Dropbox:

"curl -u 'example@example.com:password' https://api.feedbin.me/v2/subscriptions.json -o ~/Dropbox/Backups/Feedbin/feedbin-subscriptions.json"

I have the above script saved and used Lingon to schedule it to run automatically once a week, alleviating the need for me take the time to back up my RSS subscriptions by hand. To use the script, you simply need to drop in your Feedbin credentials, save it wherever you’d like and then add it and schedule it to run via Lingon.