iBackupRepository for a database of files: a JSON collection per file (JsonRepository), an SQLite database (mmo.pdo's PDORepository). A dump is a .tar.gz of the files, by their path from the application's root, so it is restored under another root -- a server's release -- as it was made here.
- [`backup`](https://mmoframework.fr/en/documentation/mmo.core/php/classes/tFileBackup.md#tfilebackup-backup) archives the files where they are (the shell's machine), through [`snapshotFile`](https://mmoframework.fr/en/documentation/mmo.core/php/classes/tFileBackup.md#tfilebackup-snapshotfile): a plain copy,
or what the repository makes consistent (SQLite's `.backup` of a database in use);
- [`restore`](https://mmoframework.fr/en/documentation/mmo.core/php/classes/tFileBackup.md#tfilebackup-restore) extracts into a folder beside the files, then moves each into place: a rename, so the site reads
the old file or the new one, never half of one. Only the collections asked; with `$drop`, the repository's files
the dump does not hold are removed.
The class gives `getBackupFiles`; `BACKUP_KIND` names its dumps (`20261112-153000-json.tar.gz`).