Skip to content

Restic cache fills root partition during application backup #8072

Open

Description

@DavidePrincipi

The run-backup script introduced in Core 3.20 performs Restic forget+prune operations in a rootful container, which mounts the restic-cache volume under the rootful namespace. Because Restic cache data is saved per-user as Podman rootless data, the cache is rebuilt under the rootful namespace as well, growing the used disk space on the / filesystem.

Steps to reproduce
Run the backup of a Mail application with a large data set.

Expected behavior
Restic cache data is saved only in the application's restic-cache volume.

Actual behavior
After the application backup completes, forget+prune runs in a rootful container and fills a separate restic-cache volume under the Podman rootful namespace. As a result, the cache is duplicated: once under /var/lib/containers/storage/volumes (rootful) and once under /home/mail1/.local/share/containers/storage/volumes (rootless).

If the root filesystem is near space exhaustion, the backup procedure may fill it up.

Components
Core 3.20

See also


Thanks to @nrauso

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions