{"id":2056,"date":"2009-02-08T11:50:34","date_gmt":"2009-02-08T17:50:34","guid":{"rendered":"http:\/\/8stars.org\/a\/?p=2056"},"modified":"2009-02-08T11:50:34","modified_gmt":"2009-02-08T17:50:34","slug":"backing-up-your-delicious-library-on-a-mac","status":"publish","type":"post","link":"https:\/\/8stars.org\/a\/2009\/02\/08\/backing-up-your-delicious-library-on-a-mac\/","title":{"rendered":"Backing up your Delicious library on a Mac"},"content":{"rendered":"<p>The recent implosion of <a href=\"http:\/\/ma.gnolia.com\/\">Ma.gnolia<\/a> and a <a href=\"http:\/\/varnelis.net\/blog\/users_are_losers_or_datapocalypse_part_2\">growing skepticism<\/a> of entrusting your data to <a href=\"http:\/\/ascii.textfiles.com\/archives\/1717\">the cloud<\/a> got me thinking about the data I&#8217;ve got that&#8217;s &#8220;out there.&#8221; One particular point of vulnerability is <a href=\"http:\/\/delicious.com\/\">Delicious<\/a>, where I keep my bookmarks.<\/p>\n<p>Fortunately, Delicious makes it pretty easy to download all your bookmarks if you know what you&#8217;re doing. Unfortunately, you have to know what you&#8217;re doing, at least a little.<\/p>\n<p>With that in mind, here&#8217;s a simple Applescript that any Mac user can run to create a backup.  Delicious requests that you do this sparingly, so I&#8217;d recommend doing it only, say, once a week.<\/p>\n<p>To make this work, open Script Editor on your Mac (it came with it, and should be lurking about somewhere unless you deleted it) and paste the following into it, changing the username and password. There may be a linebreak on the last line\u00e2\u20ac\u201dedit it so that it is all on one line. Save it using &#8220;Application&#8221; as the file format with whatever name you like\u00e2\u20ac\u201dthis will result in a mini app that you can double-click to run.<\/p>\n<p>Running it will create a file called deliciousbackup.xml in your Documents folder. That file will not be in the most readable format, but it will have all your data. Each time you run it, it will overwrite the previous version of the file. It would be possible to do multiple snapshots, but I haven&#8217;t gotten that fancy.<br \/>\n<code><br \/>\nset thefile to \"deliciousbackup.xml\"<br \/>\n-- change myusername to your username, keep the quote marks<br \/>\nset theusername to \"myusername\"<br \/>\n-- change mypassword to your password, keep the quote marks<br \/>\nset thepassword to \"mypassword\" <\/p>\n<p>-- this is where the magic happens<br \/>\ndo shell script \"curl https:\/\/\" & theusername & \":\" & thepassword & \"@api.del.icio.us\/v1\/posts\/all -o \\\"$HOME\/Documents\/\" & thefile & \"\\\"\"<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A simple applescript that will back up your bookmarks<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[15],"tags":[57,140,381],"class_list":["post-2056","post","type-post","status-publish","format-standard","hentry","category-net-stuff","tag-backup","tag-delicious","tag-script"],"_links":{"self":[{"href":"https:\/\/8stars.org\/a\/wp-json\/wp\/v2\/posts\/2056","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/8stars.org\/a\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/8stars.org\/a\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/8stars.org\/a\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/8stars.org\/a\/wp-json\/wp\/v2\/comments?post=2056"}],"version-history":[{"count":0,"href":"https:\/\/8stars.org\/a\/wp-json\/wp\/v2\/posts\/2056\/revisions"}],"wp:attachment":[{"href":"https:\/\/8stars.org\/a\/wp-json\/wp\/v2\/media?parent=2056"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/8stars.org\/a\/wp-json\/wp\/v2\/categories?post=2056"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/8stars.org\/a\/wp-json\/wp\/v2\/tags?post=2056"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}