mysqldump/remote
Jump to navigation
Jump to search
To backup from a remote server, piping the file directly to your local machine (so it doesn't fill up the remote disk):
ssh <user>@<remote_host> "mysqldump -u <username> -p <database_name> | gzip -c" > <local_filename>.sql.gz