I need to make backups of the remote machine mariadb database. My plan is to run
ssh user@remoteip 'mariadb-dump -uuser -ppass --all-databases > backup.sql'
from my local machine.
I found that remote machines history is not being populated with the mariadb-dump command I just executed. journalctl also did not contain the command.
Is there any security reason on the remote side I should be worried about when passing mariadb password in the ssh command? Are there better alternatives?