import type { BackupEnv } from '@dorfteich/shared'; /** * The data directories that travel in a restore set's archive (ADR 0015). * * ONE list, used by the nightly archive AND by the restore — they must not * drift, or a backup would carry something the restore never puts back. * Adding a new persistent data directory is a one-line change here plus the * env entry and the compose mount. * * All of them must share a parent directory: `archiveBase` derives the tar * root from that and throws otherwise. */ export function dataDirs( env: Pick, ): string[] { return [env.UPLOADS_DIR, env.PLUGINS_DIR, env.CUSTOM_FONTS_DIR]; }