You can prepare for attacks on your website and prevent permanent damage to your content by making regular backups, which you can restore or import into another system in case your web host fails to protect you. It is often a lot of work to restore a backup, but it is better than losing all of your content.
To make a backup of your website on a hosted service, export all of your pages, posts, and comments into a single XML file. It is important to note that this will only back up the text content of your website. Other content, such as images that you've uploaded, will not be included in this backup. The easiest way to make sure you have a backup copy of all of your images is to make a mirror of your site (discussed in detail below).
To make backups of a website that uses shared hosting, or if you are administering on your own server, save copies all of the files that make up your website and save a snapshot of your website's database.
The following instructions are for making backups of the posts and comments on your website if it is hosted by Blogger, WordPress.com, Maktoob, LiveJournal, Tumblr, or Posterous. Not every service makes this easy, and the backups you can make are not always in the most useful format. Still, in case something happens to your site, it is a good idea to keep backups so you can restore it later.
Blogger is a blogging service run by Google. To make a backup, first log into your account and go to your dashboard. Click on Settings in the dropdown menu:
Click on the Other sub-page under Settings.
Click "Export Blog" to export your blog. Blogger allows you export into the Blogger Atom format, which makes it possible to import your content into other blogging services.
Clicking the Download Blog button will allowed you to download an XML backup of your blog.
Near the bottom of the navigation on the left click Tools, and click Export in the pop-up menu.
Choose "All content" to export everything, and then click the Download Export File button. This will backup all of the posts, pages, comments, and other data in your WordPress website. If you ever want to move your website from WordPress.com to a WordPress website that you host yourself, this is the easiest way to move all of your content over.
Yahoo's Maktoob is one of the Arab world's leading blogging platforms. To make a backup of your website, first login and go to your dashboard. Click on إدارة المحتويات to manage your website's content.
Then click تصدير to go to the export page.
Scroll down to the bottom and finally click تحميل ملف التصدير to save a backup of your website.
Your backup will be a WordPress XML document which can import back into Maktoob, WordPress.com, or a WordPress site you host yourself.
LiveJournal is one of the oldest hosted blogging platforms. Unfortunately, their backup tools only allow you to export one month of posts at a time. To make your backups, login to your LiveJournal account and go to http://www.livejournal.com/export.bml to export your posts month-by-month.
You must enter the year in the "yyyy" field and the month in the "mm" field. If you want to back up all of your posts you've ever made you must manually enter each month and save it as a separate file. LiveJournal saves your backups as a comma-separated value file (csv) which you can open in spreadsheet software such as LibreOffice Calc or Microsoft Excel, or in an XML document.
Tumblr is a popular hosted blogging service. Unfortunately there is no way to export your blog through their web interface at this time. Tumblr provides a backup tool on their Goodies page, but it's currently only available for Mac OS X.
Tumblr provides access to an API, so programmers are able to write scripts that make backups of your website, but this beyond the technical expertise of most users. However, there are services that can help you migrate your Tumblr blog into WordPress, such as tumblr2wp.com.
Enter the domain name of your Tumblr blog, choose your settings, and click Export, and it will save an XML file that can be imported into WordPress. Even if you're not planning on switching to WordPress, this is still a valid way to make backups of your Tumblr blog.
Posterous is a popular blogging platform which, like Tumblr, does not provide a way to backup your data. Posterous provides access to an API, so programmers can write scripts to backup your website, but this is beyond the technical expertise of most users. There is no easy way to backup the data in your Posterous website aside from creating mirrors of it on a regular basis.