来自锁定的托管提供商的 SQL Server 2008 备份
我与我的托管提供商共享 MS Sql 2008 数据库,并且在我的本地机器上有 MS SQL Standard 2008。他们锁定了 SQL Server(完全正确),但这意味着我没有足够的权限来使用备份数据库向导或生成脚本来创建整个数据库。
为了解决这个问题,我一直在本地机器上使用 SQL Server 代理运行预定的 DTS 作业,以便每天晚上提取数据(足够了),并且我有一个包含所有存储过程登录等的最新脚本,以防出现问题主机出错。
我对此有两个问题。
首先,如果由于某种原因我不在,当主机出现问题时,我的下一个 DTS 作业可能会在最坏的情况下用无意义的数据或空白数据覆盖所有本地数据。
其次,这种方式似乎有点混乱,并且如果最坏的情况发生的话,并不能真正让我迅速使数据库恢复在线状态。
对于使用当前设置运行备份的最佳方式有什么想法吗?欢迎任何意见或建议。
我认为从长远来看,我最好的选择是在另一家托管公司拥有另一台 SQL 服务器,并使用我的本地 SQL Server 代理运行每小时从主服务器到备份服务器的 DTS 数据复制。这样我就可以为主 sql 服务器设置一条 dns 记录,如果出现故障,我可以快速浏览该记录。
I have a shared MS Sql 2008 database with my hosting provider and MS SQL Standard 2008 on my local box. They have the SQL Server locked down (rightly enough) but it menas I don't have sufficient privileges to use the backup database wizard or to generate scripts to create the database as a whole.
To get around this I have been running the a scheduled DTS job using the SQL Server Agent on the local box to pull the data off every night (sufficient enough) and I have an up to date script of all Stored Procedures logins etc in case something goes wrong at the host.
There are 2 problems I have with this.
Firstly if for some reason I'm not around when the hosting has a problem my next DTS job may, in the worst case scenario, overwrite all the local data with the nonsense or blank data.
Secondly it all seems a bit messy to have it this way and doesn't really allow me to swiftly get the DB back online if the worst should happen.
Any thoughts on what's the best way to run the backup with the current setup? Any opinions or suggestions welcome.
I'm thinking that long term my best option would be to have another SQL server at another hosting company and use my local SQL Server Agent to run an hourly DTS data copy from the master to the backup. That way I can setup a dns record for the master sql server which I can flick over quickly should one fail.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你和你的主人谈过这件事吗?大多数将允许您将备份命令发送到 SQL Server(或者他们会为您设置),以便您可以备份到您可以从外部访问的文件夹。通常,这是您的 Web 服务器上 FTP 站点上受保护的文件夹(您上传 Web 内容的同一服务器,但不在可公开访问的文件夹中)。
如果您的主机不允许您执行此类操作,请切换主机。
Have you talked to your host about this? Most will allow you to send backup commands to SQL Server (or they will set it up for you) such that you can backup to a folder that you have external access to. Typically this is to a protected folder on the FTP site on your web server (the same server where you upload your web content, but not in a folder that is publicly accessible).
If your host won't let you do something like this, switch hosts.