SQLServer remote database backup

Source: Internet
Author: User
In some database-related projects, regular database backup is often required. It is quite easy to back up data to the local machine on a regular basis and the task can be completed. However, if the entire machine crashes, it makes no sense to back up data to the local machine, therefore, we need to consider backing up data to the LAN and other computers. At first, I thought it was quite simple to share a remote file.

In some database-related projects, regular database backup is often required. It is quite easy to back up data to the local machine on a regular basis and the task can be completed. However, if the entire machine crashes, it makes no sense to back up data to the local machine, therefore, we need to consider backing up data to the LAN and other computers. At first, I thought it was quite simple to share a remote file.

In some database-related projects, regular database backup is often required. It is quite easy to back up data to the local machine on a regular basis, and the scheduled task can be completed. However, if the entire machine crashes, it makes no sense to back up data to the local machine, therefore, we need to consider backing up data to the LAN and other computers.

At first, I thought quite simple. I mapped a remote shared folder, a Hong Kong Server, to a local disk and used the backup function provided by SQL Server to back up the data. However, in practice, you will find that there is no such disk available for you to select. If you use SQL statements to back up data, an error will also be prompted. What should we do?

I have found many remote backup methods on the Internet, many of which cannot be used, and some still use FTP to upload... This is beyond our needs and is unnecessary. Next, I will share a copy of the code I found online, rented the Hong Kong Server, and simply sorted it out. It has been running stably for a week with the job function in the SQL Server Agent, backup is performed once every hour.

Master .. xp_mongoshell (200) (,), master .. xp_mongoshell --

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.