WordPress plugin intelligence profile

SnapShots

Save and restore named WordPress development snapshots of the database and uploads from the admin bar or WP-CLI.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.1
Current version3.0.0
WordPress coverageTested up to WordPress 7.1
Minimum stackWP 6.6 · PHP 7.4
Directory statusactive
Last directory update17 Oct 202616d ago
Active installations20Adoption metric — not a quality score
WordPress.org rating3.7 / 5 from 3 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records SnapShots version 3.0.0 as active, updated 16d ago and tested up to WordPress 7.1.

Overview

About this plugin

SnapShots saves the current state of a WordPress development site so you can restore it in one click. Each snapshot can include the database and the uploads folder. Create, search, restore, and delete snapshots from the admin bar, from Tools → Snapshots, or with WP-CLI.

Use it while you build and test on a local or development site. A restore replaces the current database and, when files were saved, the uploads directory. Plugins, themes, and WordPress core stay as they are.

Snapshots are stored on the same server. This is not an off-site backup.

Create and restore a snapshot

  • Name each snapshot from the admin bar. The prompt suggests the current snapshot name, or the site title when none is current.
  • Search the admin bar list by name. Press Ctrl+S to open the menu and focus search. Press Enter to restore the first match.
  • Store the current admin URL and return there after restore, including URL fragments.
  • Stay logged in as the same user after a restore started from the admin screen.
  • Keep a limited number of copies of the same name. Two copies are kept by default; older ones are removed.
  • Confirm before a restore or delete.

Tools screen and settings

Tools → Snapshots lists every snapshot with its name, created time, last used time, and saved location. Select several rows and delete them together.

Settings → Snapshots controls where snapshots are saved, how many copies to keep, whether uploads and the return URL are included, which database tables to leave out, and whether the list is sorted by last used or by created date. The Plugins screen and the admin bar both link to that settings page.

php overrides the matching setting. Each option can also be changed with the snapshots_{option} filter, for example snapshots_max_shots.

What a snapshot includes

  • A database export ( dump.sql ) of the site tables, except tables you exclude.
  • The uploads directory as data.zip, when Save Files is enabled. It is enabled by default.
  • A manifest with the name, created time, last used time, and the optional return URL.

On restore, tables that use this site’s database prefix and are not in the snapshot are dropped. If the home URL inside the snapshot differs from the current home URL, WP-CLI runs a search-replace to the current URL.

Zip files are written with PHP’s ZipArchive class, or with PclZip when ZipArchive is unavailable.

WP-CLI

SnapShots adds a wp snapshot command. From the shell:

wp snapshot backup "Before the experiment" --files wp snapshot restore before-the-experiment wp snapshot list wp snapshot delete before-the-experiment

php`, and `--exclude_tables=<tables>` as a comma-separated list.

restore and `delete` accept the snapshot name, its slug, or a folder id such as `before-the-experiment_1587039434`. When you pass a name, the latest copy of that name is used.

Settings reference

These options are on Settings → Snapshots. php overrides the saved value.

  • Snapshots folder ( SNAPSHOTS_FOLDER ): wp-content/.snapshots
  • CLI allow root ( SNAPSHOTS_CLI_ALLOW_ROOT ): false
  • Max shots ( SNAPSHOTS_MAX_SHOTS ): 2
  • PHP path ( SNAPSHOTS_PHP_PATH ): empty, so the server PATH is used
  • Save files ( SNAPSHOTS_SAVE_FILES ): true
  • Save location ( SNAPSHOTS_SAVE_LOCATION ): true
  • Exclude tables ( SNAPSHOTS_EXCLUDE_TABLES ): empty

-

List order ( SNAPSHOTS_LIST_ORDER ): last_used (or created )

SNAPSHOTS_PHP_PATH is a directory. Do not include the php binary in that path.

SNAPSHOTS_CLI_PATH is also a directory, and it is not a field on the settings screen. php to the folder that contains the wp binary. Do not include wp itself.

define( ‘SNAPSHOTS_CLI_PATH’, ‘/usr/local/bin’ );

define( ‘SNAPSHOTS_PHP_PATH’, ‘/usr/local/bin’ );

define( ‘SNAPSHOTS_FOLDER’, WP_CONTENT_DIR.

snapshots’ );

define( ‘SNAPSHOTS_MAX_SHOTS’, 2 );

define( ‘SNAPSHOTS_LIST_ORDER’, ‘last_used’ );

add_filter( ‘snapshots_max_shots’, function ( $value ) {

return 5;

} );

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • wp cli
  • database
  • development
  • restore
  • snapshots
Compatibility & maintenance

Compatibility & maintenance

Tested with WP 7.1

Marked as tested with the current WordPress 7.1 release.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.1
Minimum requirementsWordPress 6.6 · PHP 7.4
Update activity17 Oct 202616d ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

Version2.8.23.0.0
WordPress compatibility6.7.77.1.3
Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.