Recent searches
No recent searches
Deleted your Help Center content? Not to worry!
Posted May 06, 2016
Backstory
If, like myself, you have at one point or another run into the problem that you accidentally deleted some Categories, Sections or Articles from your Help Center then, up until recently, Zendesk was able to help out by restoring the data.
Unfortunately Zendesk recently made the decision to implement a new policy which can be viewed here. In short, they will no longer restore any data that was deleted as a result of a mistake or incorrect use.
Now I'm sure you might be thinking "Well what am I going to do now if I accidentally delete some content?" and that is a very good question. I was in the same boat until I remembered, Google caches nearly everything!
So I've gone ahead and included some steps below which allowed me to get nearly 100% of my content back. Please keep in mind that there is a little work involved in doing so, but it certainly beats having to recreate all content from scratch.
How it works
Google caches nearly every page on the internet it's crawlers can reach so I used this to my advantage. I had recently generated a sitemap of our help center so this made life a lot easier for me.
Step 1: Getting the cached copies of your Help Articles
If you have a sitemap of your help center:
- Open your sitemap.xml file
- Copy each article URL into the address bar of your browser
- Prefix the article URL with http://webcache.googleusercontent.com/search?q=cache:
If you don't have a sitemap of your help center:
- Prefix the base address of your help center with Google's caching URL e.g. http://webcache.googleusercontent.com/search?q=cache:http://www.{domain}.zendesk.com/hc/
- Once you visit the cached help center home page you have the option of selecting your deleted Section, Category or Help Article
- You will then be displayed with a 'Page not found' error but that's OK
- Prefix the URL in the address bar with http://webcache.googleusercontent.com/search?q=cache:
- This will then retrieve the cached copy of that Category, Section or Help Article
Using either of the above methods you should end up with your article page being displayed like shown below. Note: Please keep in mind that your help center may be styled differently but that does not matter for this guide.
Step 2: Recreating the content
Now that you can see the cached page go ahead and follow the steps below to get your content back:
- Select the 'View source' option at the top of the cached page
- Press CTRL + F and enter the following into the Search bar, this will bring you to the section where the articles content is
<div class="content-body article-body">
- Copy everything between the opening and closing <div> of that section, highlighted in red below (Article Content). You can also get the original Article Heading from the sources which is highlited in red above the Article Content
- Go to your help center and choose to Add a new Article
- Now select the Source Code < > button
- Paste the content you copied earlier into the Source Code window
- Click OK, you should now see your content populated in the Content section
- Enter the original Title for the article
- Select a Section to add the article to
- Select the Add button
That's it! Now simply repeat the above steps for any other articles you wish to retrieve.
Some things to note
- This only works for content that was publicly accessible.
- If the content is brand new and it was removed, Google may not have cached the pages yet which means this method may not work for you.
- If the content has not received some amount of traffic, it's likely that Google has not cached anything on that HC.
- It's possible that even if the main HC page has been cached, individual articles might not have been.
- Although this method will allow you to get your content back, images that were used in articles cannot be retrieved this way.
- If you have links from one article to another and between it's important to update the links of those articles that were restored as they now have a new article ID.
- I am certain that it is possible to create a tool that will do all this for you but I do not have the time to create one. If anyone has the time and is willing to put in the effort it's definitely possible to create a tool that can retrieve deleted content from cached copies on the web and then restore them to the help center.
- A Zendesk rep provided me with a link to a help article that goes through how to backup your help center content, something I will definitely be doing from now on. You can find the article here.
I hope this article has helped you out! Let me know if you have any feedback or know of another way to retrieve help center content.
0
6 comments
Jessie Schutz
Thanks for sharing this, Felix! I'm going to move it over to our Tips & Tricks section. :)
0
Grow
This is great! But crazy that there is not a restore, or backup function in the actual app. I wrote about that here - https://support.zendesk.com/hc/en-us/community/posts/209398128-Need-ability-to-recover-or-back-up-Help-Center-content?preview_as_role=manager
0
Jennifer Rowe
Felix,
Are you a technical writer!? This tip is so well written and organized!
We like this tip so much we're going to have our advocates recommend it when they get HC data recover requests.
Thanks for sharing this!
0
Felix Stubner
Hey Jennifer,
I wouldn't say I am but I have always had a knack for being comprehensive and particular when it comes to tech. I've worked in support industry for some time so I have a good idea of how much detail is required so that even a novice can follow along. I'm really glad to hear that this tip has helped and that it's so well received, really appreciate it!
0
Andrea Saez
+1
0
Felix Stubner
Hey everyone, I have created a small tool to backup help center articles, you can check out the article here.
0