{"id":46462,"date":"2022-09-29T08:00:00","date_gmt":"2022-09-29T15:00:00","guid":{"rendered":"https:\/\/www.microsoft.com\/en-us\/sql-server\/blog\/?p=46462"},"modified":"2024-04-19T10:27:08","modified_gmt":"2024-04-19T17:27:08","slug":"backup-and-restore-to-url-for-s3-compatible-object-storage","status":"publish","type":"post","link":"https:\/\/www.microsoft.com\/en-us\/sql-server\/blog\/2022\/09\/29\/backup-and-restore-to-url-for-s3-compatible-object-storage\/","title":{"rendered":"Backup and restore to URL for S3-compatible object storage"},"content":{"rendered":"\n
Part of the SQL Server 2022 blog series<\/a><\/em>.<\/p>\n\n\n\n Backup and restore to simple storage service (S3)\u2013compatible object storage is a new feature introduced in SQL Server 2022<\/a> that grants the user the capability to back up or restore their databases using S3-compatible object storage, whether that be on-premises, or in the cloud.<\/p>\n\n\n\n Object storage, also known as object-based storage, is a relatively new storage architecture that manipulates data storage as distinct units, called objects. Object storage was built from the ground up to provide flexibility and scalability.<\/p>\n\n\n\n Unlike the traditional file system that uses a hierarchical file distribution system, object storage is kept in a single storehouse and embeds each data with its required metadata and custom identifier. This metadata customization and classification allows for benefits in data analytics and big data scenarios but is not restricted to it.<\/p>\n\n\n\n Object storage is provided either as software-defined, as hardware appliances, or as a combination for hybrid cloud scenarios. SQL Server 2022 is compatible with any object storage solution that is S3 Rest API compatible. That means that your object storage solution can run locally in your network, in the cloud, or hybrid.<\/p>\n\n\n\n Despite storage architectural differences for SQL Server, the backup and restore to S3 operation behaves in a very similar fashion to backup\/restore to URL. the user needs to set up a credential and then execute the backup or restore operation. To differentiate from a traditional backup to URL to object storage, SQL Server 2022 uses “S3:\/\/” as an URL prefix.<\/p>\n\n\n\n For security reasons, an HTTPS endpoint must be established between SQL Server 2022 and the object storage provider, for which a certificate must be used and where self-signed certificates are supported. Access permissions must also be provided by the storage administrator.<\/p>\n\n\n\n A database backup file storage in object storage is just as compatible as any other database backup file.<\/p>\n\n\n\n Unlike traditional file systems, object storage splits and stores its data in blocks called parts, similar to the Azure block blobs<\/a> when using Azure Blob Storage. Each part can vary its size from 5 MB to 20 MB, where the default value is 10 MB. This behavior is controlled by SQL Server through the parameter MaxTransferSize <\/strong>in combination with Compression<\/strong>.<\/p>\n\n\n\n Each backup URL can allocate up to 10,000 parts, so the file size limit for each URL is 10,000 parts * MaxTransferSize<\/strong>. SQL Server can split a single database backup up into 64 URLs with the final maximum supported being 10,000 parts * MaxTransferSize <\/strong>* 64 URLs.<\/p>\n\n\n\n It\u2019s encouraged to test different MaxTransferSize <\/strong>values since it can offer different benefits based on the database and the network.<\/p>\n\n\n\n There are two major benefits and use cases for backup and restore to S3-compatible object storage:<\/p>\n\n\n\n Download the latest release<\/a> of SQL Server 2022 if you haven\u2019t already done so and check out the SQL Server 2022 Overview and What\u2019s New references. There are many new features and improved functionalities being added to this release.<\/p>\n\n\n\n Backup and restore to simple storage service (S3)\u2013compatible object storage is a new feature introduced in SQL Server 2022.<\/p>\n","protected":false},"author":6194,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"_classifai_error":"","footnotes":""},"post_tag":[5278],"product":[5227,3645],"content-type":[2448],"topic":[],"coauthors":[5137],"class_list":["post-46462","post","type-post","status-publish","format-standard","hentry","tag-sql-server-2022-blogging-series","product-sql","product-sql-server-2022","content-type-updates","review-flag-1593580427-503","review-flag-5-1593580452-31","review-flag-new-1593580247-437","review-flag-publi-1593580761-761"],"yoast_head":"\nWhat is object storage?<\/h2>\n\n\n\n
How does it work?<\/h2>\n\n\n\n
Parts and file size limitations<\/h2>\n\n\n\n
Benefits and common scenarios<\/h2>\n\n\n\n
\n
Next steps<\/h2>\n\n\n\n
Learn more<\/h2>\n\n\n\n
\n