b2evolution b2evolution

  • Sign in
  • Sign up
  • About
  • Downloads
  • Hosting
  • Docs
  • Support
  • Sign in
  • Sign up
  • Manuals Home
  • Latest Updates
 
  1. b2evolution CMS User Manual
  2. Advanced Topics
  3. How to...
  4. How to compare backups

How to compare backups

Comparing backups is useful in the following scenarios:

  • You have 2 backups of your site and you’r enot sure which one you want to restore
  • You want to compare a backup to your current site
  • Your site has been hacked and you want to know what has been changed

Comparing files

On your Linux web server command line, type:

diff -r -x cache www.backup1 www.backup2

In this command www.backup1 and www.backup2 represent the 2 file structures you want to compare.

Also -x cache allows you to ignore the cache folder, since it is almost guaranteed the caches will be different.

An even better way, may be to just ignore the *.page files in the cache, like this:

diff -r -x "*.page" www.backup1 www.backup2

Comparing databases

The easiest way is to export the database to a file backup and then compare the files.

To be documented.

Created by fplanque • Last edit by fplanque on 2020-06-09 00:25 • •

No feedback yet

On this page

  • Comparing files
  • Comparing databases

Search the Manual

Content Hierarchy

  • b2evolution CMS User Manual
  • User's Guide
  • Installation / Upgrade
  • Front-office Reference
  • Back-office Reference
  • Developer Reference
  • Operations Reference
  • Advanced Topics
    • Using Desktop Blogging Tools
    • Using Blogging Apps
    • Blogging by email
    • Using the APIs
    • Contributing
    • Translations (i18n/l10n)
    • Monetizing
    • How to...
      • How to create your own flag / locale
      • How to post by MMS
      • Make a Backup
      • How to use UTF-8
      • Use RSS
      • How to set up Google Analytics
      • How to compare backups
      • Publish an XML Site Map
      • Show images in my RSS when option "Post excerpts" is selected
      • Include an image rollover in a post
      • FTP 101: How to upload and manage files on your web server
    • Podcasting
  • Glossary
  • Archives
CMS engine

This online manual is powered by b2evolution CMS – A complete engine for your website.

About b2evolution

  • What is it?
  • Features
  • Getting Started
  • Screenshots
  • Online demo
  • Testimonials
  • Design philosophy
  • Free & open source
  • Terms of service

Downloads

  • Latest releases
  • Skins
  • Plugins
  • Language packs

About us

  • About us
  • Contact

Webhosting Guide

  • Web hosting blog
  • Best web hosting
  • Cheap web hosting
  • Green web hosting
  • Hosting with SSH
  • VPS hosting
  • Dedicated servers
  • Reseller hosting
  • Int'l: UK / France

Docs & Support

  • Online manual
  • Forums
  • Hire a pro !

Other

  • Adsense
  • Press room
  • Privacy policy

Stay in touch

  • GitHub
  • Twitter
  • Facebook
  • LinkedIn
  • News blog
  • RSS feed
  • Atom feed

Founded & Maintained by François Planque