Skip to main content

Metadata Backup: How It Works

A metadata backup is a point-in-time snapshot of an org's configuration — Apex, flows, objects, fields, layouts, permission sets, and the rest of your metadata. mtdt.io keeps these snapshots so you can see what changed over time, restore a known-good state, and feed rollbacks.

What gets backed up​

A backup retrieves the org's metadata through the Salesforce Metadata API and stores it securely. You can scope a backup to specific metadata types or capture the org broadly, depending on what you need to protect.

Watching a backup run​

A backup is more than a retrieve. After the metadata has been read, the run still packages the archive, collects content assets and static resources, uploads the archive and — if configured — pushes to Git. The status column names the phase it is in — one of Read-based metadata, Content assets, Static resources, Packaging, Uploading archive, Cleaning up, Git push, Finalizing — instead of sitting at 100% for several minutes.

Scheduling backups​

  1. Open Backups and create a backup job for a connected org.
  2. Choose a schedule — on demand, or recurring. Plan tiers determine cadence: the Free plan includes one weekly job; Pro and Team unlock more frequent scheduled backups.
  3. mtdt.io runs the job automatically and lists every run, with its status and contents, in the backup history.

You can also run a backup on demand at any time — for example, right before a risky change.

Scheduled metadata backups — schedule, storage, and status at a glance

Using backups​

  • Browse and download a snapshot to inspect exactly what the org contained at that moment.
  • Restore / redeploy metadata from a snapshot back into an org.
  • Rollback points. When you enable the backup option on a deployment, mtdt.io captures a pre-deploy snapshot that powers one-click rollback.
  • Back up to Git. Push an org's metadata into a connected repository so changes are versioned and reviewable alongside your code. See Backing Up Metadata to a Repository.
  • Deploy from a backup. A backup with a stored archive can be the source of a deployment. A backup that exists only as a Git commit has no archive to unpack and is not offered as a deploy or comparison source.

How long backups are kept​

Each org has a retention window — 14 days on Free, up to 180 days on paid plans — and the most recent backup of an org is always kept. Backups used as a deployment's rollback point are never purged. See How Long mtdt.io Keeps Metadata.

Best practices​

  • Schedule a regular backup of production so you always have a recent restore point.
  • Take an on-demand backup before major changes that aren't going through a deployment (for example, a managed-package upgrade).
  • Combine with version control — backing up to Git gives you a reviewable, diffable history in the same place as your code.
  • Check the retention window before you rely on an old snapshot: rows show a countdown when deletion is a few days away.