Sample Header Ad - 728x90

executing mariadb-dump with password over ssh

1 vote
0 answers
214 views
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?
Asked by sanjihan (285 rep)
Sep 13, 2024, 10:27 PM
Last activity: Sep 15, 2024, 05:54 AM