Take GLPI and OCS asset inventory Management backup with the following command using terminal.
Command
#mysqldump -u root -p ocsweb > /root/Desktop/ocsweb27june18.sql
Give the file as you need.
Once you hit the command enter the MySQL password and continue.
After successfully backup taken check the file location.