Migrating backups from file systems to Azure Blob Storage and from Azure Blob Storage to file systems
Learn how to use the nz_azConnector utility to upload and download database backups between file system and Azure Blob Storage.
Use the nz_azConnector utility to upload backups from the file system to Azure Blob Storage, and to download backups from Azure Blob Storage to the file system. With the nzrestore command and the Azure storage connector, you can restore these migrated backups from Azure.
After you run the nzbackup command to back up a database to a file system, you can use the nz_azConnector utility to upload database backup present on the file system to Azure Blob Storage and vice versa.
Arguments
The nz_azConnector utility provides Azure Blob Storage support through the following command line arguments.
Starting from version 11.2.1.0, nz_azconnector
is called
nz_azConnector
.
- -db=database
- Specifies the name of the database, for which you want to migrate a backup.
- -dir="dirname [...]"
- Specifies the backup directory or directories. This value s the same as the -dir parameter from the nzbackup command.
- -npshost=name
- Specifies the hostname.
- -backupset=backupsetID
- Specifies the backupset ID as displayed in the backup history report. If the value is omitted, all the backupsets for the database from the mentioned directory are uploaded or downloaded.
- {-upload | -download}
- Specifies whether the files need to be uploaded (host to cloud) or downloaded (cloud to host).
- -logfiledir=dirname
- Specifies the location of the log file. The default location is the /tmp directory.
- -storage-account=account name
- Specifies the Azure Blob Storage account name.
- -key=azure key
- Specifies the Azure blob storage key.
- -container=container name
- Specifies the Azure Blob Storage container name.
- -uniqueid=uniqueid
- Specifies the namespace that is used to group data in the Azure container.
- -streams=number
- Specifies the number of blocks that are to be uploaded or downloaded in parallel. The default is 16.
- -paralleljobs=number
- Specifies the number of files to upload or download in parallel. The default is 6.
- -blocksize=number
- Specifies the block size in MB to upload or download a file. The default is 100.