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
- place it in a magic spool directory
- generate an rdf file containing some meta data about the production
- add an entry to a table in a database. Specify the
sektion
to bemaster
Archiving the distribution master
- Encode the audio to mp3
- Pack everything up in an iso
- place this iso in the magic spool directory
- generate the rdf as above
- add an entry to a table in a database. The
sektion
should becdimage
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
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