We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9e3323 commit 1069543Copy full SHA for 1069543
bin/v-backup-user
@@ -376,7 +376,8 @@ local_backup(){
376
fi
377
378
# Checking disk space
379
- disk_usage=$(df $BACKUP | awk '{print $5}'|tail -n1|cut -f 1 -d '%')
+ disk_usage=$(df $BACKUP |tail -n1 |tr ' ' '\n' |grep % |cut -f 1 -d %)
380
+
381
if [ "$disk_usage" -ge "$BACKUP_DISK_LIMIT" ]; then
382
echo "Error: Not enough disk space"
383
log_event "$E_DISK" "$EVENT"
0 commit comments