Skip to content

nzS3Connector: While downloading backup files from cloud, it says download completed even if backup of database doesn't exist. #33

Description

@nmn1406

Tried to download backup files by giving random/wrong DB name (Db doesn't exists, backup was never taken) and backupset id.

It says download complete. Nothing is downloaded.

Expectation is that it should throw error, like file doesn't exist on cloud.

[nz@ipshost-0 ~]$ ./nz_s3Connector -dir /export/home/nz/bnr_compat -backupset 20250305095029 -access-key ***** -bucket-url ***** -db xyxyx  -npshost ipshost-0 -region us-east-2 -secret-key ******* -unique-id paas_to_s3 -download
2025-03-05 15:38:08  [INFO] Aws S3 bucket: concerto-bnr-test-qa
2025-03-05 15:38:08  [INFO] Aws region: us-east-2
2025-03-05 15:38:08  [INFO] Backup/Restore directory: /export/home/nz/bnr_compat
2025-03-05 15:38:08  [INFO] DB name : xyxyx
2025-03-05 15:38:08  [INFO] Nps hostname : ipshost-0
2025-03-05 15:38:08  [INFO] BackupsetID : 20250305095029
2025-03-05 15:38:08  [INFO] Number of files to upload/download in parallel : 6
2025-03-05 15:38:08  [INFO] Backup dir path: paas_to_s3/Netezza/ipshost-0/xyxyx/20250305095029
2025-03-05 15:38:08  [INFO] Downloading data to dir /export/home/nz/bnr_compat
2025-03-05 15:38:08  [INFO] Total files downloaded: 0
2025-03-05 15:38:08  [INFO] Downloading complete.
[nz@ipshost-0 ~]$ ./nz_s3Connector -dir /export/home/nz/bnr_compat -backupset 202503022222029 -access-key ***** -bucket-url *** -db xyxyx  -npshost ipshost-0 -region us-east-2 -secret-key ***** -unique-id paas_to_s3 -download
2025-03-05 15:38:20  [INFO] Aws S3 bucket: concerto-bnr-test-qa
2025-03-05 15:38:20  [INFO] Aws region: us-east-2
2025-03-05 15:38:20  [INFO] Backup/Restore directory: /export/home/nz/bnr_compat
2025-03-05 15:38:20  [INFO] DB name : xyxyx
2025-03-05 15:38:20  [INFO] Nps hostname : ipshost-0
2025-03-05 15:38:20  [INFO] BackupsetID : 202503022222029
2025-03-05 15:38:20  [INFO] Number of files to upload/download in parallel : 6
2025-03-05 15:38:20  [INFO] Backup dir path: paas_to_s3/Netezza/ipshost-0/xyxyx/202503022222029
2025-03-05 15:38:20  [INFO] Downloading data to dir /export/home/nz/bnr_compat
2025-03-05 15:38:20  [INFO] Total files downloaded: 0
2025-03-05 15:38:20  [INFO] Downloading complete.

[nz@ipshost-0 ~]$ ls -ltr
total 19992
-rwxr-xr-x 1 nz nz 13392390 Feb 26 13:43 nz_s3Connector
-rw-r--r-- 1 nz nz       33 Feb 26 13:43 md5sum.txt
-rw-r--r-- 1 nz nz  7071496 Mar  5 15:16 nz_s3Connector_v1.4_linux_386.tgz
[nz@ipshost-0 ~]$ ./nz_s3Connector -dir /export/home/nz/ -backupset 202503022222029 -access-key ***** -bucket-url **** -db xyxyx  -npshost ipshost-0 -region us-east-2 -secret-key ****** -unique-id paas_to_s3 -download
2025-03-05 15:38:43  [INFO] Aws S3 bucket: concerto-bnr-test-qa
2025-03-05 15:38:43  [INFO] Aws region: us-east-2
2025-03-05 15:38:43  [INFO] Backup/Restore directory: /export/home/nz/
2025-03-05 15:38:43  [INFO] DB name : xyxyx
2025-03-05 15:38:43  [INFO] Nps hostname : ipshost-0
2025-03-05 15:38:43  [INFO] BackupsetID : 202503022222029
2025-03-05 15:38:43  [INFO] Number of files to upload/download in parallel : 6
2025-03-05 15:38:43  [INFO] Backup dir path: paas_to_s3/Netezza/ipshost-0/xyxyx/202503022222029
2025-03-05 15:38:43  [INFO] Downloading data to dir /export/home/nz/
2025-03-05 15:38:43  [INFO] Total files downloaded: 0
2025-03-05 15:38:43  [INFO] Downloading complete.
[nz@ipshost-0 ~]$ ls -ltrh
total 20M
-rwxr-xr-x 1 nz nz  13M Feb 26 13:43 nz_s3Connector
-rw-r--r-- 1 nz nz   33 Feb 26 13:43 md5sum.txt
-rw-r--r-- 1 nz nz 6.8M Mar  5 15:16 nz_s3Connector_v1.4_linux_386.tgz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions