When the BackupsetID is not mentioned in the command, the log does not display the BackupsetID. IF BackupsetID is provided in the command, the log shows the BackupID, but if not provided, the BackupsetID remains empty. We need to improve the logging.
In the below case "-backupset" option is not specified in the command:
[nz@posed1 nz]$ ./nz_azConnector -db=db1 -dir="xxxx " -npshost="xxxx " -storage-account="xxxx" -key="" -container="xx xx"-upload -uniqueid="xxxx" -streams=1
2023-10-03 06:21:22 EST [INFO] Azure account name : xxxx
2023-10-03 06:21:22 EST [INFO] Azure container : xxxx
2023-10-03 06:21:22 EST [INFO] Number of blocks to upload/download in parallel : xxxx
2023-10-03 06:21:22 EST [INFO] Block size in MB to upload/download file 100
2023-10-03 06:21:22 EST [INFO] Backup/Restore directory : xxxx
2023-10-03 06:21:22 EST [INFO] DB name : db1
2023-10-03 06:21:22 EST [INFO] Nps hostname : xxxx
2023-10-03 06:21:22 EST [INFO] BackupsetID :
2023-10-03 06:21:22 EST [INFO] UniqueID : xxxx
2023-10-03 06:21:22 EST [INFO] Number of files to upload/download in parallel : 6
2023-10-03 06:21:22 EST [INFO] Uploading backup data to azure cloud from backup dir /home/nz/
If we mention the -backupset in the command ,the BackupsetId is updated:
[nz@posed1 src]$ ./nz_azConnector -db=db1 -dir="xxxx" -npshost="xxxx" -storage-account="xxxx" -key="xxxx" -container="xxxx" -upload -uniqueid="xxxx" -streams=1 -backupset 20231003091131
2023-10-03 09:12:09 EST [INFO] Azure account name : xxxx
2023-10-03 09:12:09 EST [INFO] Azure container : xxxx
2023-10-03 09:12:09 EST [INFO] Number of blocks to upload/download in parallel : xxxx
2023-10-03 09:12:09 EST [INFO] Block size in MB to upload/download file 100
2023-10-03 09:12:09 EST [INFO] Backup/Restore directory : xxxx
2023-10-03 09:12:09 EST [INFO] DB name : db1
2023-10-03 09:12:09 EST [INFO] Nps hostname : xxxx
2023-10-03 09:12:09 EST [INFO] BackupsetID : 20231003091131
2023-10-03 09:12:09 EST [INFO] UniqueID : xxxx
2023-10-03 09:12:09 EST [INFO] Number of files to upload/download in parallel : 6
2023-10-03 09:12:09 EST [INFO] Uploading backup data to azure cloud from backup dir /home/nz/
When the BackupsetID is not mentioned in the command, the log does not display the BackupsetID. IF BackupsetID is provided in the command, the log shows the BackupID, but if not provided, the BackupsetID remains empty. We need to improve the logging.
In the below case "-backupset" option is not specified in the command:
If we mention the -backupset in the command ,the BackupsetId is updated: