elstar IT

Fullstack | Java | Tech Speaker | Tech Coach | Frank van der Linden

  • About me
  • Blog license
  • My Open source projects

Quick tip: Make a backup of your Cloudant database

03-11-2017 2 responses flinden68 business cloudant hrassistant

Cloudant

For HR Assistant, we use Cloudant database as storage of the data on the IBM Cloud

Today I was thinking about ‘what if we loose our data as something goes wrong’. It is not likeable, but still possible.

Make a backup

On IBM Cloud, there is documentation about making a backup of your data.

So installed the npm package couchbackup  and run the command as described in the documentation.]

I changed only to store the output as a JSON file.

When I run the command I hit an error about authentication

Cloudant_Backup_Error

Set permissions

I move over to my Cloudant database and opened the permissions page. On that page I selected, temporarily, the _reader checkbox for the Unauthenticated connections.

Moved back to Terminal and return the backup command, this time it ran successful.

After inspecting the backup JSON file, I was really happy with the result.

 

Tags: cloudant, hrassistant, ibmcloud

2 thoughts on “Quick tip: Make a backup of your Cloudant database”

  1. Rami says:
    07-11-2017 at 04:57

    A very important note this method while beyond handy(thanks for tip!) it DOES NOT backup any documents with attachments in them.

    Reply
    1. Frank van der Linden says:
      12-11-2017 at 19:12

      I checked my backup file and I can confirm it does backup my attachment, which is a base64 encoded string in the document

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • « HR Assistant – now available in every language
  • HR Assistant – Hello Domino…. »

Contact me

My name is Frank van der Linden and I am an independent software developer based in the Netherlands. The last 2 years I was awarded as IBM Champion. Also I am on the board of OpenNTF. My specialisations are Java, Web development and Domino.


If you want to hire me, please fill in the Contact form


IBM Champion web badge
Apache Logo

All the code on this blog are under the Apache License 2.0. For more details, see Apache License 2.0

Most recent posts

  • Engage 2020: Hello are you listening, There is stream for everything
  • Spring Cloud Function on Azure run locally
  • Deploy Spring Cloud Function to IBM Cloud
  • Speaking (again) at Engage in a Zoo
  • Congratulations, you’re an IBM Champion (again)!

Latest reactions

  • Spring Cloud Function on Azure run locally - elstar IT on Deploy Spring Cloud Function to IBM Cloud
  • flinden68 on Quick XPages tip: add Fullcalendar plugin to your application
  • Rajesh samal on Quick tip: Swagger support for Spring Webflux
  • dsieyx on Quick XPages tip: add Fullcalendar plugin to your application
  • John on Named as IBM Champion 2019

Archive

  • March 2020
  • February 2020
  • January 2020
  • October 2019
  • September 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • January 2019
  • December 2018
  • October 2018
  • September 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • February 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • April 2015
  • March 2015
  • February 2015
  • December 2014
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • June 2014
  • May 2014
  • April 2014
  • March 2014
  • February 2014

Category

  • bluemix
  • business
  • cloudant
  • community
  • development
  • hrassistant
  • openntf
  • running
  • salesforce
  • Springboot
  • Tesla
  • trailrunning
  • Uncategorized
  • watson
  • OpenNTF
  • Collaboration Today
  • XSnippets
  • Stackoverflow
  • IBM Collaboration Solutions
  • Social Business Toolkit
  • About me
  • Dutch curriculum vitae
  • English curriculum vitae
  • Google+
  • LinkedIn profile
  • Twitter
  • Slideshare
  • Blog license
  • My open source projects