mdr2.archive

Main entry point into the archive

For archiving we need to interface with an existing legacy system named agadir. It doesn’t do very much in very complicated ways. Probably best to replace it at some point. In the mean time we try to stay away from it and not to change too much. From reading the source it appears that in order to archive a production you need to first archive what they call the master, i.e. the dtb containing the wav files and after that you’ll have to archive the so-called distribution master which is basically the same thing but the audio is encoded as mp3 and the whole thing is packed up in one or more iso files

Archiving the master

  1. place it in a magic spool directory
  2. generate an rdf file containing some meta data about the production
  3. add an entry to a table in a database. Specify the sektion to be master

Archiving the distribution master

  1. Encode the audio to mp3
  2. Pack everything up in an iso
  3. place this iso in the magic spool directory
  4. generate the rdf as above
  5. add an entry to a table in a database. The sektion should be cdimage

archive

multimethod

Archive a production

container-path

(container-path production sektion)

Return the path to the archive spool directory for a given production and sektion

container-rdf-path

(container-rdf-path production sektion)

Return the path to the rdf file in the archive spool for a given production and sektion

container-root-path

(container-root-path production sektion)

Return the root container path for a given production and sektion

other-spool-dir

Path to the archive spool directory for other productions

periodical-spool-dir

Path to the archive spool directory for periodicals

set-file-permissions

(set-file-permissions file-tree)

Set file permissions on root to g+w recursively

spool-dir

Path to the archive spool directory, i.e. where to place incoming productions that are to be archived