after checking, it seems that the swap overconsumption is caused by the tar command issued after the mariabackup to archive the command result.
Is there any way of obtaining a tar file directly from the mariabackup command?
For your information:
the mariabackup command takes about 5 min, while the tar command takes about 1 hour.
the possibility of increasing the swap to 8GB should be tested.
in our context, deleting the swap partition is not possible for administrative reasons.