Skip to content

Instantly share code, notes, and snippets.

@sqldeployhelmet
Created October 4, 2018 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sqldeployhelmet/c13b6757aab6f3e996730802e62bdaa5 to your computer and use it in GitHub Desktop.
Save sqldeployhelmet/c13b6757aab6f3e996730802e62bdaa5 to your computer and use it in GitHub Desktop.
EXEC master.dbo.xp_backup_database @database = '', @filename = 'Y:\SQL_BACKUPS\'
, @compressionlevel = 4, @cryptlevel = 8, @encryptionkey = N'IMMAENCRYPTCHYU'
, @read_write_filegroups = 1, @verify = 1, @returndetails = 1
, @init = 1, @with = 'CHECKSUM', @with = 'DIFFERENTIAL';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment