notes + file format...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2024-03-17 23:25:55 +03:00
parent b3b1d4b6dc
commit 17a419f3d2

View File

@ -1,118 +1,118 @@
# Photo archive template directory # Photo archive template directory
The contents of this are copied to each archive drive root. The contents of this are copied to each archive drive root.
```shell ```shell
$ cp -R ./media PATH_TO_ARCHIVE_DRIVE $ cp -R ./media PATH_TO_ARCHIVE_DRIVE
``` ```
The scripts are stored with the archive for generational compatibility, The scripts are stored with the archive for generational compatibility,
both building and documenting the structure the archive was created with. both building and documenting the structure the archive was created with.
## Scripts ## Scripts
``` ```
media media
├── img ├── img
│   └── my │   └── my
│   └── work │   └── work
│   ├── sync-flash.sh │   ├── sync-flash.sh
│   ├── process-archive.sh │   ├── process-archive.sh
│   ├── compress-archive.sh │   ├── compress-archive.sh
│   └── update-exif.sh │   └── update-exif.sh
└── tree.sh └── tree.sh
``` ```
### `sync-archive.sh` ### `sync-archive.sh`
Ingest media into the archive and prepare it for further steps in the Ingest media into the archive and prepare it for further steps in the
workflow workflow
This script can be run interactively: This script can be run interactively:
```shell ```shell
$ ./sync-archive.sh $ ./sync-archive.sh
``` ```
This will: This will:
- Create the necessary directory structure - Create directory structure
(see: [Archive directory structure](#archive-direcotry-structure)) (see: [Archive directory structure](#archive-direcotry-structure))
- Copy and verify the contents of 1 or more external media - Copy and verify the contents of 1 or more external media
to the archive directory to the archive directory
- Prepare the archive for further work via `process-archive.sh` - Prepare the archive for further work via `process-archive.sh`
- Compress the archive via `compress-archive.sh` - Compress the archive via `compress-archive.sh`
### `process-archive.sh` ### `process-archive.sh`
```shell ```shell
$ ./process-archive.sh [FLAGS] PATH $ ./process-archive.sh [FLAGS] PATH
``` ```
### `compress-archive.sh` ### `compress-archive.sh`
```shell ```shell
$ ./compress-archive.sh [FLAGS] PATH $ ./compress-archive.sh [FLAGS] PATH
``` ```
### `update-exif.sh` ### `update-exif.sh`
Update EXIF of output previews from corresponding .psd / RAW files. Update EXIF of output previews from corresponding .psd / RAW files.
```shell ```shell
$ ./update-exif.sh [FLAGS] PATH $ ./update-exif.sh [FLAGS] PATH
``` ```
### `tree.sh` ### `tree.sh`
Generte and check arcive file list. Generte and check arcive file list.
This provides a basic and fast way to check high level tree consistency This provides a basic and fast way to check high level tree consistency
against mostly humn-error. against mostly humn-error.
## Archive directory structure ## Archive directory structure
``` ```
media media
├── img ├── img
│   ├── my │   ├── my
│   │ └── work │   │ └── work
│   │ ├── - 20240310 - shoot directory (multi flash card) │   │ ├── - 20240310 - shoot directory (multi flash card)
│   │ │ ├── 20240310.001 │   │ │ ├── 20240310.001
│   │ │ │ ├── ... │   │ │ │ ├── ...
│   │ │ │ └── preview (RAW) │   │ │ │ └── preview (RAW)
│   │ │ ├── 20240310.002 │   │ │ ├── 20240310.002
│   │ │ │ ├── ... │   │ │ │ ├── ...
│   │ │ │ └── preview (RAW) │   │ │ │ └── preview (RAW)
│   │ │ ├── ... │   │ │ ├── ...
│   │ │ └── preview (RAW) │   │ │ └── preview (RAW)
│   │ ├── - 20240310.001 - shoot directory (single flash card) │   │ ├── - 20240310.001 - shoot directory (single flash card)
│   │ │ ├── ... │   │ │ ├── ...
│   │ │ └── preview (RAW) │   │ │ └── preview (RAW)
│   │ ├── 20240310 - shoot directory (fully sorted) │   │ ├── 20240310 - shoot directory (fully sorted)
│   │ │ └── ... │   │ │ └── ...
│   │ └── ... │   │ └── ...
│   └── others │   └── others
│   └── ... │   └── ...
├── video ├── video
│   └── ... │   └── ...
├── ... ├── ...
└── tree.sh └── tree.sh
``` ```
``` ```
<date> - <info>/ <date> - <info>/
``` ```
Leading `"-"` indicates a not fully sorted shoot. Leading `"-"` indicates a not fully sorted shoot.
``` ```
- <date> - <info>/ - <date> - <info>/
``` ```