Backup, integrity and restore
Database archives, CHECKSUM validation, isolated restore and instance recovery planning.
Backup unit and recovery consistency
A database archive captures that database’s objects and data. Full service recovery also requires identities, instance settings and infrastructure secrets. Archive integrity and successful database reopening are complementary checks. Validation should include restore, catalog reads, cardinalities and reference business results.
Back up on the server
BACKUP DATABASE is an administrator operation. DISK names a file on the Core machine accessible to its account. Use a backup directory separate from data and spares. Archives contain database objects/data in Octaviius format, not SQL Server format. INIT allows target-file replacement: do not overwrite your only copy. COMPRESSION and CHECKSUM use Octaviius mechanisms.
BACKUP DATABASE Atelier
TO DISK = 'D:\Backups\Atelier.octbak'
WITH COMPRESSION, INIT, CHECKSUM;Verify and restore into a separate database
RESTORE VERIFYONLY validates an archive but does not replace a real restore/read test. RESTORE DATABASE to a new target permits isolation. WITH REPLACE may overwrite an existing database and belongs only in a planned recovery. Release active queries before restoring.
RESTORE VERIFYONLY FROM DISK = 'D:\Backups\Atelier.octbak' WITH CHECKSUM;
RESTORE DATABASE AtelierTest FROM DISK = 'D:\Backups\Atelier.octbak' WITH CHECKSUM;Complete recovery planning
A user-database backup is not a backup of instance accounts, API keys, settings and secrets. Record server configuration, paths, certificates, identities and versions separately. Keep copies off the production disk and regularly verify reads, row counts and business checks after restoration. A checkpoint or spare on the same disk does not protect against disk loss.