Db2

Db2

Connect with Db2, Informix, Netezza, open source, and other data experts to gain value from your data, share insights, and solve problems.

 View Only
  • 1.  Using Db2uBackup I can't get a compressed backup

    Posted Tue April 08, 2025 11:17 AM

    Hi,
    creating a Db2uBackup resource on OpenShift with "compresstrue" (link):

    apiVersion: db2ubnr.databases.ibm.com/v1alpha1
    kind: Db2uBackup
    metadata:
    name: db2ubackup-mas-maslab-maslabws-manage
      namespace: db2u
    spec:
      databaseBackup:
        backupTarget:
          vendor: disk
        dbName: BLUDB
        type: offline
        compress: true
    db2uName: mas-maslab-maslabws-manage

    results in this command being executed:

    2025-04-08 14:38:02.948866 Backup process started....
    2025-04-08 14:38:02.948911  INFO: /bin/sh -c "db2 'backup db BLUDB on all dbpartitionnums  to /mnt/backup/BLUDB/db2ubackup-mas-maslab-maslabws-manage/backup_off_1'"

    Why compression option is not used? (so the result backup file is not compressed)

    Any hint about on to fix it?



    ------------------------------
    Diego Visentin
    ------------------------------


  • 2.  RE: Using Db2uBackup I can't get a compressed backup

    Posted Fri May 23, 2025 11:55 AM

    Hi Diego. Yes, the compress option is available from the CR but currently undocumented since the feature is not available yet. Currently, if you want a compressed backup you would have to take it manually from the engine pod.



    ------------------------------
    Dave Mitchell
    ------------------------------



  • 3.  RE: Using Db2uBackup I can't get a compressed backup

    Posted Mon May 26, 2025 07:37 AM

    Thanks a lot for the info! I'll wait for the next version when this feature is released.



    ------------------------------
    Diego Visentin
    ------------------------------