While I do have off-site backups for linkiepie.com, why not take the safety of your data into your own hands?

Here I will quickly document a simple method of backing up all your link data stored in LinkiePie using the API. As mentioned in a previous post you can access your API key in the settings page (https://linkiepie.com/settings/).

Using this API key you can issue a request to access a JSON blob of all your data. Let's use curl in a simple shell script to download it and save it to your home directory.
#!/usr/bin/env sh

curl -s "https://linkiepie.com/api/v1/links/?username=YOUR_USERNAME&api_key=YOUR_API_KEY&format=json&limit=0&offset=0" -o "$HOME/linkiepie_backup.json"
This will save a JSON file containing all of the links (and associated data) you have added to LinkiePie. This includes data such as the URL and extracted summary text of each link.

Depending on how much you use LinkiePie this may be quite a large file. I like to use an awesome tool called jq for exploring and extracting useful information from JSON files. Here's an example of using jq for extracting just the URLs from this file.

cat linkiepie_backup.json | jq '.objects[].url'

You can add the above sh script to cron for automatic periodic backups.

Easy :)
This was posted on Wed 06 Jan 2016 (3 years, 3 months ago) by Ryan McConville
So as a follow up to my previous post, I decided that it would be a good idea to write a little bit about a project that I spent some of my free time working on. Now that I have started my PhD I have less time for working on side projects, so this is probably a good landmark. It's called LinkiePie (https://linkiepie.com) and I started it whenever I was compiling links for the 'stuff I have found interesting recently' posts on my blog. The idea of LinkiePie is that it's a place to store, organise and categorise interesting stuff you find on the web.

Basically, a LinkiePie is a list where you store the links to the interesting stuff you come across on the web, and you can create as many of them as you want. So, for example, you can have a LinkiePie for links related to a specific web development technology you like, or one for links related to some topic you are researching, or maybe a LinkiePie for links you think some of your friends would like.

You can also make your LinkiePies public so that you can share them with others. Making it public will give you a URL that you can send to someone else and they will be able to see whatever you put into that LinkiePie.

One other feature I thought would be pretty cool is grabbing the relevant content of the page that you are storing. So if it disappears or changes in the future, you still have a copy of what you found interesting at the time.

This is very much a work in progress, but as I said, I thought I would write about what I have done so far.

Here are two LinkiePies for the first two 'stuff I have found interesting recently' posts on my blog.
https://linkiepie.com/pie/ryan/interesting-things-0/
https://linkiepie.com/pie/ryan/interesting-things-1/
This was posted on Tue 12 Nov 2013 (5 years, 5 months ago) by Ryan McConville