In a previous blog post, I discussed methods to address GIS errors. One of those methods was the infamous restoration from backup. Depending on the frequency of backup, the level of inconvenience may be minimal if the backup was taken in the not too distant past (time measured in minutes or hours, not days).
To illustrate the point….a past onsite conversion project provided challenging network conditions of periodic, sporadic service disruptions. These disruptions caused disconnection between the ArcGIS workstation and its license server resulting in premature conversion termination. Since the code took four to six hours to complete from its initiation, any disruption forced a restoration from backup and a return to the beginning.
To alleviate the situation, the conversion code was broken into segregated packets. Upon the successful completion of a packet, an immediate database backup was taken. In the event of an unsuccessful conversion due to a network “Hiccup”, a database restoration was conducted to the previous state. This “Plan B” proved to be a successful methodology, and the completed conversion was eventually achieved.
Nightly, scheduled backups should already be in implementation. But how does one conduct an immediate database backup via SQL Server Management Studio? These one-time backups can save one’s back in the event of undesired results.
To produce a backup via SQL Server Management Studio and “Put it on the shelf”, conduct the following steps:
- Right-click on the desired database (SSPRocks), choose Tasks, and then Back Up from the context menus (Figure 1).
- In the Backup Database GUI, verify the database name, Full Backup type, and the name/location of the backup (Figure 2). It is suggested to add the date of the backup in the name and version number.
- Right-click on the database, choose Tasks, Restore, and Database from the context menus (Figure 3).
- In the Restore Database GUI (Figure 4), choose the Device Option and navigate to the latest/greatest backup conducted.
- Verify that the destination database is the same database, and click the OK Button. The database is back to the state when the backup was taken.
What do you think?