Files
yatm/config.example.yaml
T
Samuel Cui 4fef653b71 Prepare YATM v1.0.0-alpha.2
Unify file queries and Scan execution, retain indexed Identical results,
improve Job and Preview workflows, and verify release packaging.
2026-10-05 19:08:49 +08:00

53 lines
1.8 KiB
YAML

# domain used by user interface
domain: http://127.0.0.1:8080
# http service binding
listen: 127.0.0.1:8080
# debug port binding
debug_listen: 127.0.0.1:8081
# database settings, you can use sqlite or mysql (untested)
database:
dialect: sqlite
dsn: ./tapes.db
# Optional concurrent Catalog reads. The SQLite database must be on a local filesystem.
# Restart after changing this setting. Job databases keep their existing journal mode.
sqlite_wal: false
# Volume-only installations leave this empty. For Tape, add the actual device
# with an sg mapping (see sg_map) and adapt the scripts below to the environment.
tape_devices: []
# working path settings
paths:
# to save logs and write reports
work: ./
# Administrator boundaries; register original/restore directories in Settings -> Locations.
# An explicit empty list denies access. Ignore uses ordered gitignore rules.
access:
- root: /srv/files
ignore: |
/private/
- root: /srv/restored
# roots that contain already mounted offline Volumes
volumes:
- /mnt
# Preview bundles are addressed by content signature. Generation options live in Settings → Preview.
preview:
# Relative roots resolve within paths.work.
root: ./previews
# Scripts receive TAPE_DIR after the barcode is known. Store LTFS logs and exported indexes there.
# These scripts interact with external software and may need platform-specific changes.
scripts:
# enable hardware encryption on tape driver
encrypt: ./scripts/encrypt
# format ltfs on lto tape, may need to be changed for different ltfs software.
mkfs: ./scripts/mkfs
# mount ltfs to specified path, may need to be changed for different ltfs software.
mount: ./scripts/mount
# umount ltfs path
umount: ./scripts/umount
# read tape barcode for restore jobs
read_info: ./scripts/readinfo