Skip to content

v3.2.122 — Updates prune their old backups

Choose a tag to compare

@agit8or1 agit8or1 released this 21 Oct 15:13
· 68 commits to main since this release

Housekeeping only. No application code changed since 3.2.121.

Updates prune their old backups

Each update copies the whole install, .env included, to /opt/urbackup-gui-backup-<timestamp>. Nothing ever removed them, so they piled up: one server had 38, taking 2.3 GB and holding 38 copies of its database password and JWT secret.

After a successful update, the three newest backups are now kept and older ones deleted. Only directories matching that exact name pattern are touched, and the backup the current update just made is never removed. Pruning runs after the update is complete, so a failure there is logged and can't roll back a working install.

When it starts: an update runs the update script that's already installed, so the update to 3.2.122 is still done by the 3.2.121 script and doesn't prune. Pruning starts with the update after this one. To clear old backups now, delete all but the newest few /opt/urbackup-gui-backup-* directories by hand.

Upgrading: nothing to do. If you're still on 3.2.120 or earlier, see 3.2.121: click Update Now a second time so the remote agent package is refreshed.

Full changelog: v3.2.121...v3.2.122