docs.microsoft.com/en-us/powershell/module/sqlserver/backup-sqldatabase

Preview meta tags from the docs.microsoft.com website.

Linked Hostnames

6

Thumbnail

Search Engine Appearance

Google

https://docs.microsoft.com/en-us/powershell/module/sqlserver/backup-sqldatabase

Backup-SqlDatabase (SQLServer) - SQL Server PowerShell

The Backup-SqlDatabase cmdlet performs backup operations on a SQL Server database. This includes full database backups, transaction log backups, and database file backups. This cmdlet is modeled after the Microsoft.SqlServer.Management.Smo.Backup class. The parameters on this class generally correspond to properties on that Smo object. To back up a database by server instance path and database name, specify the server instance path in the Path parameter and the database name in the Database parameter. To back up a database using an Smo.Server object and database name, specify the Smo.Server object in the InputObject parameter, either directly or by using the pipeline operator, and the database name in the Database parameter. To back up a database by server instance and database name, specify the server instance in the ServerInstance parameter and the database name in the Database parameter. To back up a database using an Smo.Database object, specify the Smo.Database object in the DatabaseObject parameter, either directly or by using the pipeline operator. By default this cmdlet performs a full database backup. Set the type of the backup by using the BackupAction parameter. By default the backup file is stored in the default server backup location under the name databasename.bak for full and/or file backups and under the name databasename.trn for log backups. To specify a different file name, use the BackupFile parameter. To specify a backup file location and use an auto-generated file name, specify the location by using the BackupContainer parameter.



Bing

Backup-SqlDatabase (SQLServer) - SQL Server PowerShell

https://docs.microsoft.com/en-us/powershell/module/sqlserver/backup-sqldatabase

The Backup-SqlDatabase cmdlet performs backup operations on a SQL Server database. This includes full database backups, transaction log backups, and database file backups. This cmdlet is modeled after the Microsoft.SqlServer.Management.Smo.Backup class. The parameters on this class generally correspond to properties on that Smo object. To back up a database by server instance path and database name, specify the server instance path in the Path parameter and the database name in the Database parameter. To back up a database using an Smo.Server object and database name, specify the Smo.Server object in the InputObject parameter, either directly or by using the pipeline operator, and the database name in the Database parameter. To back up a database by server instance and database name, specify the server instance in the ServerInstance parameter and the database name in the Database parameter. To back up a database using an Smo.Database object, specify the Smo.Database object in the DatabaseObject parameter, either directly or by using the pipeline operator. By default this cmdlet performs a full database backup. Set the type of the backup by using the BackupAction parameter. By default the backup file is stored in the default server backup location under the name databasename.bak for full and/or file backups and under the name databasename.trn for log backups. To specify a different file name, use the BackupFile parameter. To specify a backup file location and use an auto-generated file name, specify the location by using the BackupContainer parameter.



DuckDuckGo

https://docs.microsoft.com/en-us/powershell/module/sqlserver/backup-sqldatabase

Backup-SqlDatabase (SQLServer) - SQL Server PowerShell

The Backup-SqlDatabase cmdlet performs backup operations on a SQL Server database. This includes full database backups, transaction log backups, and database file backups. This cmdlet is modeled after the Microsoft.SqlServer.Management.Smo.Backup class. The parameters on this class generally correspond to properties on that Smo object. To back up a database by server instance path and database name, specify the server instance path in the Path parameter and the database name in the Database parameter. To back up a database using an Smo.Server object and database name, specify the Smo.Server object in the InputObject parameter, either directly or by using the pipeline operator, and the database name in the Database parameter. To back up a database by server instance and database name, specify the server instance in the ServerInstance parameter and the database name in the Database parameter. To back up a database using an Smo.Database object, specify the Smo.Database object in the DatabaseObject parameter, either directly or by using the pipeline operator. By default this cmdlet performs a full database backup. Set the type of the backup by using the BackupAction parameter. By default the backup file is stored in the default server backup location under the name databasename.bak for full and/or file backups and under the name databasename.trn for log backups. To specify a different file name, use the BackupFile parameter. To specify a backup file location and use an auto-generated file name, specify the location by using the BackupContainer parameter.

  • General Meta Tags

    53
    • title
      Backup-SqlDatabase (SQLServer) - SQL Server PowerShell | Microsoft Learn
    • charset
      utf-8
    • viewport
      width=device-width, initial-scale=1.0
    • color-scheme
      light dark
    • description
      The Backup-SqlDatabase cmdlet performs backup operations on a SQL Server database. This includes full database backups, transaction log backups, and database file backups. This cmdlet is modeled after the Microsoft.SqlServer.Management.Smo.Backup class. The parameters on this class generally correspond to properties on that Smo object. To back up a database by server instance path and database name, specify the server instance path in the Path parameter and the database name in the Database parameter. To back up a database using an Smo.Server object and database name, specify the Smo.Server object in the InputObject parameter, either directly or by using the pipeline operator, and the database name in the Database parameter. To back up a database by server instance and database name, specify the server instance in the ServerInstance parameter and the database name in the Database parameter. To back up a database using an Smo.Database object, specify the Smo.Database object in the DatabaseObject parameter, either directly or by using the pipeline operator. By default this cmdlet performs a full database backup. Set the type of the backup by using the BackupAction parameter. By default the backup file is stored in the default server backup location under the name databasename.bak for full and/or file backups and under the name databasename.trn for log backups. To specify a different file name, use the BackupFile parameter. To specify a backup file location and use an auto-generated file name, specify the location by using the BackupContainer parameter.
  • Open Graph Meta Tags

    6
    • og:type
      website
    • og:image:alt
      Microsoft Learn
    • og:image
      https://learn.microsoft.com/en-us/media/open-graph-image.png
    • og:title
      Backup-SqlDatabase (SQLServer) - SQL Server PowerShell
    • og:url
      https://learn.microsoft.com/en-us/powershell/module/sqlserver/backup-sqldatabase?view=sqlserver-ps
  • Twitter Meta Tags

    2
    • twitter:card
      summary_large_image
    • twitter:site
      @MicrosoftLearn
  • Link Tags

    6
    • canonical
      https://learn.microsoft.com/en-us/powershell/module/sqlserver/backup-sqldatabase?view=sqlserver-ps
    • dns-prefetch
      //target.microsoft.com
    • dns-prefetch
      //microsoftmscompoc.tt.omtrdc.net
    • preconnect
      //mscom.demdex.net
    • preload
      /static/third-party/adobe-target/at-js/2.9.0/at.js

Links

11