Sure. You need to ssh into the server. If you have ssh permissions, you then need to get your mysql username and password that is associated with your instance of OpenEMR. This can be found by going to the sqlconfig.php file. You will want to get the sqlconf.php file that is in your virtual host, not the git repo. Your gitrepo should never hold your mySQL server settings. In my case its /var/www/openemr/sites/default/sqlconfig.php.
with these permissions (lets suppose these are your settings), you can use these settings to do the mysql dump. You would type the following in your terminal. When asked for your password, enter the password that in noted in your settings.
Make sure that you store the sqldump in a place that you can recover it.
You can also set up a cronjob to automatically run the mysqldump command. You would want to mount an external drive (either a physical drive or using GCP or Amazon) to store your data.