backup system 92% is done

This commit is contained in:
Serghey Rodin 2011-08-20 17:24:52 +03:00
commit 5e09a913fd
4 changed files with 198 additions and 19 deletions

View file

@ -1364,3 +1364,12 @@ get_config_value() {
# Print value
echo "$value"
}
is_backup_enabled() {
backups=$(grep "BACKUPS='" $V_USERS/$user/user.conf |cut -f 2 -d \')
if [ -z "$backups" ] || [[ "$backups" -le '0' ]]; then
echo "Error: User backups are disabled"
log_event 'debug' "$E_BACKUP_DISABLED $V_EVENT"
exit $E_BACKUP_DISABLED
fi
}