BlogHow-toBackups

Why your WordPress backup is so large, and how to make it smaller

Backups inside backups, video in uploads, logs and old caches. How to see what takes the space in a Restora backup, and what to leave out safely.

3 min readPerforks

Backups of other plugins found on the site with their sizes, ticked to stay out of the backup

A site of a few hundred megabytes should not make a backup of several gigabytes. When it does, there is usually one cause, and it takes a minute to find. Here is how to look, and what is safe to remove from the backup.

First, see what is really in there

Press Details next to a backup in the Restora list. It shows every database table with its rows, and the files grouped as each plugin and theme with its size, the media uploads by year, and WordPress itself. In most cases the answer is on that screen. Further down, Left out on purpose lists what this backup skipped.

The classic cause: a backup inside a backup

If you have ever tried a second backup or migration plugin, its archives are probably still on the server, in a folder of its own. A backup plugin that copies the whole site copies those too. Each new backup then carries complete copies of the site, and the size grows with every run.

Restora finds them. Under Schedule and settings, the setting Backups of other plugins lists each plugin whose backups are on the site, with the folder and the size:

PluginUsual folder
Duplicatorwp-content/duplicator-backups, and in older versions backups-dup-lite, backups-dup-pro or wp-snapshots
UpdraftPluswp-content/updraft
All-in-One WP Migrationwp-content/ai1wm-backups
WPvividwp-content/wpvividbackups
Backup Migrationwp-content/backup-migration…
BackWPupwp-content/uploads/backwpup…
Solid Backupswp-content/uploads/backupbuddy_backups
WP-DB-Backupwp-content/backup-db

If a plugin was told to use another folder, Restora reads that from the plugin's own settings. What is ticked stays out of your backups, and everything is ticked by default. Untick a plugin only if you really want its archives inside yours.

Leaving them out of the backup does not delete them. If you no longer use that plugin, clean up from its own screen, because those files also take space on your hosting plan and copies of a site should not stay around. Do check that you have a good backup of your own first.

Media

On most sites wp-content/uploads is the biggest part by far, and the part that compresses least: images, video, audio and archives are already compressed, so Restora stores them as they are rather than wasting time on them. Two things help:

  • Move video off the site. Files of hundreds of megabytes belong on a video service. If they have to stay, leave their folder out, as long as you hold them elsewhere: wp-content/uploads/videos under Leave out of file backups.
  • Back up parts on different schedules. Media changes less often than the database. A daily database backup and a weekly full backup keep you safe without storing the media seven times a week; see scheduling backups.

Take care with old years of uploads: a folder left out is a folder that will not come back in a restore.

Logs, dumps and leftovers

Debug logs, old database dumps in the WordPress folder, forgotten copies of the site (old/, site-copy.zip) and folders of plugins that were never tidied up. In the same box you can use patterns such as *.log, or a path such as wp-content/uploads/2019-import. Cache folders under wp-content are already left out, whatever you enter.

A database that grew

Look at the table list in Details. Tables with millions of rows are usually logs from a security, statistics or email plugin, or old order data. The fix belongs in that plugin's retention setting, not in the backup: if a table is simply skipped, a restore cannot bring it back.

Keep fewer of them

The size of one backup is only half of it. Scheduled backups to keep sets how many of each kind stay on the server, and the default is 5. Once the backups are smaller, a low number may still be enough, and with Restora Pro the older copies can live on S3 or SFTP instead of on the site's disk. Before you leave anything out, ask one question: if the server were gone tomorrow, could I get this back? All settings are in settings explained.