mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
Update v-backup-user
This commit is contained in:
parent
1f63bf12e3
commit
5b0e051565
1 changed files with 5 additions and 5 deletions
|
@ -60,11 +60,11 @@ let u_disk=$(grep "U_DISK=" $VESTA/data/users/$user/user.conf |cut -f 2 -d \')*2
|
|||
let v_disk=$(($(stat -f --format="%a*%S" $BACKUP)))/1024/1024
|
||||
|
||||
if [ "$u_disk" -gt "$v_disk" ]; then
|
||||
echo "account size : $u_account" |tee $BACKUP/$user.log
|
||||
echo "available space on disk: $v_disk" |tee $BACKUP/$user.log
|
||||
echo "needed space on disk : $u_disk" |tee $BACKUP/$user.log
|
||||
echo "not enough diskspace available to perform the backup." |$SENDMAIL -s "$subj" $email $notify
|
||||
check_result $E_LIMIT "not enough diskspace available to perform the backup."
|
||||
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
|
||||
|
||||
if [ -z "$BACKUP_TEMP" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue