Skip to content

NDMP_NATIVE: enable full restore, eject tape before unload, enable update of NDMP environment#1862

Merged
BareosBot merged 11 commits intobareos:masterfrom
pstorz:dev/pstorz/master/ndmp-native
Dec 10, 2024
Merged

NDMP_NATIVE: enable full restore, eject tape before unload, enable update of NDMP environment#1862
BareosBot merged 11 commits intobareos:masterfrom
pstorz:dev/pstorz/master/ndmp-native

Conversation

@pstorz
Copy link
Member

@pstorz pstorz commented Jun 21, 2024

Thank you for contributing to the Bareos Project!

This PR enhances the handling of NDMP NATIVE Backups

  • Fixes a Bug regarding the tape device string
  • Allows full restore (without file selection) of NDMP_NATIVE backups
  • The NDMP Environment can now be updated
  • The tape drive will be ejected before the robot unloads the tape

Please check

  • Short description and the purpose of this PR is present above this paragraph
  • Your name is present in the AUTHORS file (optional)

If you have any questions or problems, please give a comment in the PR.

Helpful documentation and best practices

Checklist for the reviewer of the PR (will be processed by the Bareos team)

Make sure you check/merge the PR using devtools/pr-tool to have some simple automated checks run and a proper changelog record added.

General
Source code quality
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR

@pstorz pstorz force-pushed the dev/pstorz/master/ndmp-native branch from 1ef3e3c to 4083cd4 Compare June 23, 2024 09:52
@pstorz pstorz marked this pull request as draft June 23, 2024 10:30
@pstorz pstorz self-assigned this Jun 23, 2024
@arogge arogge added this to the 24.0.0 milestone Jun 25, 2024
@sebsura sebsura added the draft label Jun 28, 2024
@arogge arogge added the onhold label Jul 9, 2024
@bruno-at-bareos bruno-at-bareos force-pushed the dev/pstorz/master/ndmp-native branch from b2fa79a to 349e92f Compare August 7, 2024 11:42
@pstorz pstorz force-pushed the dev/pstorz/master/ndmp-native branch from b462563 to ab6ce38 Compare September 16, 2024 11:38
@pstorz pstorz marked this pull request as ready for review September 16, 2024 11:48
@pstorz pstorz changed the title ndmp_dma_storage.cc: fix tape device bug NDMP_NATIVE: enable full restore, eject tape before unload, enable update of NDMP environment Sep 16, 2024
@pstorz pstorz marked this pull request as draft September 20, 2024 09:18
@pstorz pstorz marked this pull request as ready for review September 20, 2024 12:16
@pstorz pstorz force-pushed the dev/pstorz/master/ndmp-native branch from a6a3ead to 603e2ad Compare October 1, 2024 18:24
@pstorz pstorz force-pushed the dev/pstorz/master/ndmp-native branch from 50fcf00 to e25f3a2 Compare October 22, 2024 15:31
@arogge arogge self-requested a review November 5, 2024 10:32
@pstorz pstorz force-pushed the dev/pstorz/master/ndmp-native branch from e25f3a2 to a33d56b Compare November 15, 2024 08:16
@arogge arogge requested a review from sebsura December 3, 2024 10:43
@pstorz pstorz removed the request for review from arogge December 3, 2024 10:43
Copy link
Contributor

@sebsura sebsura left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another thing i found:

  // FIXME: disabled because of "missing media entry" error
  // if (!ndmp_validate_job(jcr, &ndmp_sess.control_acb->job)) {
  //   goto cleanup;
  //}

once testing is setup, we need to check why this is commented out. It reads like its important ...

@sebsura sebsura force-pushed the dev/pstorz/master/ndmp-native branch from 2b069a2 to 54ade31 Compare December 9, 2024 12:37
@sebsura sebsura self-requested a review December 9, 2024 12:39
Copy link
Contributor

@sebsura sebsura left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We just need to squash the commits once we know that the rebase did not mess anything up.

@sebsura sebsura force-pushed the dev/pstorz/master/ndmp-native branch from 54ade31 to 3bbbe09 Compare December 10, 2024 09:11
@sebsura sebsura force-pushed the dev/pstorz/master/ndmp-native branch from 3bbbe09 to c7c626b Compare December 10, 2024 14:32
@pstorz pstorz force-pushed the dev/pstorz/master/ndmp-native branch from c7c626b to 8fad785 Compare December 10, 2024 17:33
pstorz and others added 9 commits December 10, 2024 19:58
Allow the update of NDMP Environment Values by handling errors like:

ERROR: duplicate key value violates unique constraint
   "ndmpjobenvironment_pkey"
DETAIL: Key (jobid, fileindex, envname)=(5, 1, HIST) already exists.
During an NDMP Backup, the current status was logged every 30 seconds.
We now make the interval 300 seconds so that the logfile is not filled
so much.
@pstorz pstorz force-pushed the dev/pstorz/master/ndmp-native branch from 8fad785 to b32b7a1 Compare December 10, 2024 18:59
@BareosBot BareosBot merged commit 047144f into bareos:master Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants