Feature #10568

Add new api endpoint for AIP Migration

Added by Sara Allain about 5 years ago. Updated over 3 years ago.

Status:NewStart date:11/16/2016
Priority:MediumDue date:
Assignee:-% Done:

0%

Category:-
Target version:0.12.0
Sponsored:No Requires documentation:
Pull Request:

Description

This allows AIPs to be moved from one location to another via a new API endpoint. The API takes two arguments: 1) UUID of an existing package (AIP or DIP or transfer) and 2) the UUID of a Location. The move_package endpoint will:

  • Confirm that the type of package (AIP or DIP or Transfer) matches the new Location
  • Set the status of the package to ‘moving’
  • Copy the package from its current location to the new location using rsync and leave the original copy of the package alone
  • Execute any post store hooks configured for the Location (for example, call the Arkivum finalize command)
  • Update the internal storage service database with the new location of the package (and new status, set by the Space)
  • If the rsync command does not work or there is a failure in post store commands, the status of the package will be set to ‘move failed’, and the internal ss database will not be updatedt

History

#2 Updated by Nick Wilkinson almost 5 years ago

  • Target version changed from 0.10.0 to 0.11.0

#3 Updated by Nick Wilkinson over 4 years ago

  • Assignee set to Nick Wilkinson

#4 Updated by Nick Wilkinson over 4 years ago

  • Assignee deleted (Nick Wilkinson)

#5 Updated by Justin Simpson over 4 years ago

  • Target version changed from 0.11.0 to 0.12.0

Also available in: Atom PDF