backup failed not enough disk space available to perform the backup.

Post Reply
Gara
Posts: 1
Joined: Wed Apr 07, 2021 9:24 am

Noticed a problem while creating a backup. If in a folder that is located in the directory of the site, mount the resource through the samba client with the volume of the surpassing disk of the server. In the control panel there is a condition excluding folder data an error occurs

The condition checks the disk space and the size of the folders, but does not take into account the exclusion rule
if [ "$u_disk" -gt "$v_disk" ]; then
echo "account size : $u_account megabytes" |tee $BACKUP/$user.log
echo "available space on disk: $v_disk megabytes" |tee $BACKUP/$user.log
echo "needed space on disk : $u_disk megabytes" |tee $BACKUP/$user.log
echo "not enough disk space available to perform the backup." |$SENDMAIL -s "$subj" $email $notify
check_result $E_LIMIT "not enough disk space available to perform the backup."
fi

Tags:
User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

but it will be very hard to calculate the size of excluded folders...

what I can do is to make new config variable, for example $DONT_CHECK_AVAILABLE_SPACE_BEFORE_BACKUP, so you can set that variable in vesta.conf
Post Reply