Metadata-Version: 2.5
Name: trytond_cmdb_tape
Version: 8.0.0
Summary: Tryton module cmdb_tape
Author: Clemens Hupka
Maintainer-email: Clemens Hupka <issues@tryton-erp.eu>
License-Expression: GPL-3.0-or-later
License-File: COPYRIGHT
Keywords: cmdb_tape,tryton
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Plugins
Classifier: Framework :: Tryton
Classifier: Topic :: Office/Business
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Requires-Dist: pillow
Requires-Dist: qrcode
Requires-Dist: rasterprynt2
Requires-Dist: trytond-cmdb-location<8.1,>=8.0
Requires-Dist: trytond-cmdb<8.1,>=8.0
Requires-Dist: trytond-company<8.1,>=8.0
Requires-Dist: trytond-party<8.1,>=8.0
Requires-Dist: trytond-printing-labels<8.1,>=8.0
Requires-Dist: trytond-product<8.1,>=8.0
Requires-Dist: trytond-stock-lot<8.1,>=8.0
Requires-Dist: trytond<8.1,>=8.0
Provides-Extra: test
Description-Content-Type: text/x-rst

cmdb_tape
#########

The cmdb_tape module adds LTO tape cartridge management to the CMDB
module suite.

It is designed for libraries and archives operating tape based backup
platforms (e.g. Bareos with LTO-8/LTO-6 tape tiers) and covers the full
tape lifecycle, media sets aligned with backup pools, autochanger slot
modeling, off-site storage location rotation with a complete relocation
history, and LTO cartridge label printing.

.. class:: cmdb.tape.template

   The template model for tape cartridges.

   It stores the cartridge generation (LTO-1 to LTO-9), the native and
   compressed capacity, WORM and hardware encryption support, and the
   cartridge color.

.. class:: cmdb.tape

   The instance model representing a physical tape cartridge.

   It carries the tape lifecycle state (new, active, full, verified,
   expired, retired, destroyed), the retirement reason, the volume
   name (used as barcode on the LTO label and as Bareos volume name),
   the current storage location, the autochanger assignment with slot
   number, media error counters and the related incidents.

.. class:: cmdb.tape.media_set

   A media set groups tapes for a backup pool (e.g. the Bareos
   ``Tape-File`` pool).  It defines the pool type, the retention
   period and the sites involved in the rotation.

.. class:: cmdb.tape.changer

   The autochanger (tape library) model with the device path and the
   number of cartridge slots.

.. class:: cmdb.tape.move

   The relocation history.  Every change of the storage location, the
   changer or the slot number creates a move record with the source
   and target location, changer, slot, the user, the timestamp and a
   reason (off-site rotation, DR copy, return to vault, verification,
   retirement, ...).

Volume Names
------------

New tapes get a volume name assigned automatically following the LTO
cartridge label specification: ``L`` plus a 5-digit zero-padded
sequence (e.g. ``L00001``), optionally followed by the generation
suffix of the template (e.g. ``L00001L8`` for an LTO-8 cartridge).
This matches a Bareos ``Label Format`` of ``L%05d``.

Label Printing
--------------

The module ships a default LTO cartridge label (Code 39 barcode,
human readable volume name, generation, media set, organization lines
and a QR code with the CMDB redirect URL) rendered through the
``printing_labels`` module.  Labels can be printed per tape and in
batch for a whole media set.

The cmdb.type record ``tape`` is created to allow lot-based inventory
management of tapes.
