Backup archive creation location and out of disk space

SYSTEM INFORMATION
OS type and version Almalinux 9.4
Webmin version 2.111
Virtualmin version 7.20.2

Hi,

I have a bit of a disk space problem.

I have a /home and / root partition xfs/LVM

there would be enough space in /home to do the virtualmin backups, but it seems when creating the bzip2 or zip or other archive it will create it somewhere on the / partition.

I only have 48GB free and the Backup is 22GB, it seems to create 22GB+22GB and then after uploading to FTP deletes them luckily.

Is there any way to move the backup creation process to /home? I have 98GB free on that partition.

last days backup failed due to insufficient disk space, I deleted some uncessary stuff but I am still strapped for space.

I am scared of doing any partition merging I have no experience with that.

Whats not break the backups into 2, with half the domains in one and the rest in another.

also are you using one file per server?

I am using single archive but the other servers are only like 100MB only one is 22GB so I dont think it would make much difference

You might be able to work out how to mount /tmp to a larger partition as that where the backup is made. You may need to resize /home to give it enough space.

looking at source code the file is where I found tmp directory, you might be able edit that, backup orginal first of cause.

https://raw.githubusercontent.com/virtualmin/virtualmin-gpl/master/backups-lib.pl raw view

Create a directory /home/tmp for example and make it sticky (chmod 1777 /home/tmp). Then create directory /home/tmp/.webmin

In webmin change the tmp directory. Webmin → Webmin configuration → Advanced Options → Temporary files directory, change from Default /tmp/.webmin to /home/tmp/.webmin

This worked great, thank you.