Skip to content
Vacuum Image Optimizer1.2.2
1.2.21 min read

Backup & Restore

Keep restorable originals before optimization and use restore actions when needed.

Backup & Restore is the safety layer behind source-changing operations.

Backup behavior

When backups are enabled, Vacuum copies and verifies the original source before optimization and stores the backup reference in attachment metadata. For normal JPEG and PNG derivative generation, originals are not modified. When a WebP source is replaced, the candidate must be smaller and a verified backup must exist first. If the source changes again, a new backup is created without deleting the older recovery copy.

Restore behavior

Restore accepts only a backup file within Vacuum's owned backup directory and the site's uploads tree. It publishes the restored source atomically, removes plugin-registered derivatives when safe, clears optimization metadata, and returns the attachment to a pending state. The backup file remains available after restore.

Retention

Backup retention can be configured in days. A value of 0 keeps backups indefinitely. Scheduled cleanup uses the vacimg_cleanup_backups cron hook. Deleting an attachment removes its plugin-owned derivatives but leaves backup files intact for recovery and retention management.

Best practice

Keep backups enabled for the first full bulk run and for any site where editors may need to compare or roll back image changes.

Related articles