Question

Is it possible just to view the current stored backups on the server from the command line using the mysqldump command? If so, how would I go about doing this?

Was it helpful?

Solution

When you run a mysqldump command, the output is usually redirected to a file, like so:

mysqldump -ppassword database > /path/to/file

If you run the command this way, then you can see the current stored files simply by listing the directory where you are storing them.

OTHER TIPS

The mysqldump command is mostly use to dump the MySQL database to a .sql file. Using the Terminal (aka shell) you would use commands such as 'ls' to locate a file and 'less' to view the .sql file if that's what you are after.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top