andy18
12-04-2002, 12:39 PM
Hello,
I am trying to backup the database on the remote server using my local SQLEM.Can I backup so that the backup db is store on my local workstation rather than on the server db folder?Is there a way to this?
Andy
MarkIL
12-04-2002, 12:52 PM
Mhm, if you have a MySQL distribution installed on your workstation (all you need is the client libraries and mysqldump) then you could simply do:
mysqldump -u<yourusername> -p<yourpass> -h<server_addr> -ce <database_name>
If you want to dump multiple databases, use -B db1,db2,db3, etc.
For dumping ALL databases, simply add the -A parameter.
andy18
12-04-2002, 01:18 PM
Hello,
thanks for the reply.
But what I mean is MS SQL database and not MYSQL database.
Andy
MarkIL
12-04-2002, 01:40 PM
Sorry, didn't catch that. :rolleyes:
I did find some software that does that kinda stuff (e.g., RBackup (http://remote-backup.com)), but it costs $$.
ServerGuys
12-04-2002, 10:59 PM
Originally posted by andy18
I am trying to backup the database on the remote server using my local SQLEM.Can I backup so that the backup db is store on my local workstation rather than on the server db folder?
It depends on what type of access you have between your PC and the server. If you can create a VPN tunnel between your location and the server, then you can simply use shares and drive mappings. Set the backup to dump to a mapped drive.
If you don't have the ability or desire to go the VPN route, I'd suggest making it a two step process. Automate your SQL Server database dumps to flat file locally on the server, and then retrieve the dump file via your preferred method (FTP, etc).
RackMy.com
12-05-2002, 04:17 AM
Can you set SQL to backup to a mapped drive?
ServerGuys
12-05-2002, 08:11 AM
Originally posted by RackMy.com
Can you set SQL to backup to a mapped drive?
Yes, definitely. You would use syntax like this:
backup database db_name to disk='x:\path\db_name.bak' with init
That's for a quick and dirty backup. You could even create a dump device on a mapped drive and backup to it.