Database backup SSH file location?

DaveL

Well-known member
I need to make a backup of my forum database via SSH as too large for phpmyadmin. I've found the below command:
mysqldump -uUSERNAME -p DATABASE > backup.sql

Can anyone advise how I choose the location of where the database will be downloaded to?
 
The backup.sql is a path you define. For example:

mysqldump -uUSERNAME -p DATABASE > /home/user/backup.sql
 
Keep in mind that once you get the SSH command working properly, you can add that same command into a Cron Job so it can backup your database every day.
 
I need to make a backup of my forum database via SSH as too large for phpmyadmin. I've found the below command:
mysqldump -uUSERNAME -p DATABASE > backup.sql

Can anyone advise how I choose the location of where the database will be downloaded to?
 
Back
Top Bottom