The new setup at the ZKM in Karlsruhe requires the script to work for a far longer period of time than roughly a month. Therefore the following tasks need to be done:
Add a separate startup mode
(or a separate script?)which does the following:
- Watch a source directory for changes
- Sync up to 2.769 images (sorted from newest to oldest) to a target directory
- Move images older than the 2.769 newest images from the target directory into an archive directory
- Run a fallback sync mechanism in case the inotify watch breaks (couple of hours interval)
The implementation in f9b5c82c currently has a drawback: When using the script mode 'rotated' on each synchronization run the script copies and removes already archived files into/from the destination directory.
Therefore I do not close this issue yet.