Backup failing

My scheduled backups have always gone through smoothly but of late on my CentOS 7 machine I am getting the following error

Creating TAR file of home directory ..
.. TAR failed!

cat: write error: No space left on device

gzip: stdout: Broken pipe
/bin/tar: -: Wrote only 6144 of 10240 bytes
/bin/tar: Error is not recoverable: exiting now

Backup failed! See the progress output above for the reason why.

Kindly advise.



Howdy -- are you perhaps low on disk space? There error there suggests that there may not be space left on your drive.

What is the output of this command:

df -h

[root@host ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda5       225G  6.4G  207G   4% /
devtmpfs        912M     0  912M   0% /dev
tmpfs           921M     0  921M   0% /dev/shm
tmpfs           921M  714M  207M  78% /run
tmpfs           921M     0  921M   0% /sys/fs/cgroup
/dev/sda1       477M   91M  358M  21% /boot
/dev/sda2       2.0G   37M  1.8G   3% /tmp
[root@host ~]#

I suspect your /tmp partition may be filling up. It has 1.8GB of space, if one of your domains is large enough, that could get used up during the backup process.

What you may want to do is make a new temp directory in /home, and then configure Webmin to use that in Webmin -> Webmin -> Webmin Configuration -> Advanced Options -> Temporary files directory.

I changed the Temporary files directory to /home/tmp after mkdir tmp in /home

A backup was successful after that. If the Maximum age of temporary files is set at 5 on this page ( Webmin Configuration -> Advanced Options) does that empty my /hom/tmp folder as well after 5 days?

That particular option will clean out whatever the Webmin temp directory is set to. Previously, that would have been /tmp/.webmin -- but now it will clear out /home/tmp.