mirror of
https://github.com/chrisbenincasa/tunarr.git
synced 2026-04-18 09:03:35 -04:00
docs: add section about meilisearch sparse file
This commit is contained in:
56
docs/misc/faq.md
Normal file
56
docs/misc/faq.md
Normal file
@@ -0,0 +1,56 @@
|
||||
# Frequently Asked Questions
|
||||
|
||||
## Why does `data.ms` appear to be 2TB?
|
||||
|
||||
Tunarr uses [Meilisearch](https://www.meilisearch.com/) for search functionality. Meilisearch creates a file called `data.ms` in the Tunarr configuration directory that may appear to be approximately 2TB in size. **This file is NOT actually taking up 2TB of disk space.**
|
||||
|
||||
The `data.ms` file is a [sparse file](https://en.wikipedia.org/wiki/Sparse_file), which means it only allocates disk blocks for data that has actually been written. The reported size is the *virtual* size, while the actual disk usage is typically only a few megabytes.
|
||||
|
||||
You can verify the actual disk usage with:
|
||||
|
||||
```bash
|
||||
# Linux/macOS - shows actual blocks used
|
||||
du -h /path/to/tunarr/.tunarr/data.ms
|
||||
|
||||
# Compare with apparent size
|
||||
ls -lh /path/to/tunarr/.tunarr/data.ms
|
||||
```
|
||||
|
||||
### Excluding `data.ms` from backups
|
||||
|
||||
Since `data.ms` is a sparse file that can be regenerated by Meilisearch, you may want to exclude it from manual backups to avoid issues with backup tools that don't handle sparse files well.
|
||||
|
||||
**rsync:**
|
||||
|
||||
```bash
|
||||
rsync -av --exclude='data.ms' /path/to/tunarr/.tunarr/ /backup/destination/
|
||||
```
|
||||
|
||||
**tar (with sparse file support):**
|
||||
|
||||
```bash
|
||||
# Use --sparse flag to handle sparse files efficiently
|
||||
tar --sparse -cvf backup.tar /path/to/tunarr/.tunarr/
|
||||
|
||||
# Or exclude it entirely
|
||||
tar --exclude='data.ms' -cvf backup.tar /path/to/tunarr/.tunarr/
|
||||
```
|
||||
|
||||
**Duplicati:**
|
||||
|
||||
Add `data.ms` to your exclusion filters in the backup configuration.
|
||||
|
||||
**Borg Backup:**
|
||||
|
||||
```bash
|
||||
borg create --exclude '*/data.ms' /path/to/repo::backup /path/to/tunarr/.tunarr/
|
||||
```
|
||||
|
||||
**restic:**
|
||||
|
||||
```bash
|
||||
restic backup --exclude 'data.ms' /path/to/tunarr/.tunarr/
|
||||
```
|
||||
|
||||
!!! tip
|
||||
The Meilisearch index can be rebuilt automatically by Tunarr, so excluding `data.ms` from backups is generally safe, so long as the `ms-snapshots` directory is preserved. After restoring a backup without this file, Tunarr will recreate the search index on startup.
|
||||
18
mkdocs.yml
18
mkdocs.yml
@@ -63,6 +63,8 @@ nav:
|
||||
- FFmpeg:
|
||||
- configure/ffmpeg/index.md
|
||||
- Transcode Configs: configure/ffmpeg/transcode_config.md
|
||||
- Search:
|
||||
- misc/search/index.md
|
||||
- Channels:
|
||||
- configure/channels/index.md
|
||||
- Properties: configure/channels/properties.md
|
||||
@@ -70,7 +72,12 @@ nav:
|
||||
- EPG: configure/channels/epg.md
|
||||
- Transcoding: configure/channels/transcoding.md
|
||||
- Watermarks: configure/channels/watermarks.md
|
||||
- Programming: configure/programming.md
|
||||
- Programming: configure/channels/programming.md
|
||||
- Library:
|
||||
- configure/library/index.md
|
||||
- Filler: configure/library/filler.md
|
||||
- Custom Shows: configure/library/custom-shows.md
|
||||
- Smart Collections: configure/library/smart-collections.md
|
||||
- Scheduling:
|
||||
- configure/scheduling/index.md
|
||||
- Concepts: configure/scheduling/concepts.md
|
||||
@@ -81,17 +88,12 @@ nav:
|
||||
#- Balance: configure/scheduling/balance.md
|
||||
- Replicate: configure/scheduling/replicate.md
|
||||
- Consolidate: configure/scheduling/consolidate.md
|
||||
- Library:
|
||||
- configure/library/index.md
|
||||
- Filler: configure/library/filler.md
|
||||
- Custom Shows: configure/library/custom-shows.md
|
||||
- Smart Collections: configure/library/smart-collections.md
|
||||
- Clients:
|
||||
- configure/clients/index.md
|
||||
- Plex: configure/clients/plex.md
|
||||
- Jellyfin: configure/clients/jellyfin.md
|
||||
- Misc.:
|
||||
- Search: misc/search.md
|
||||
- FAQ: misc/faq.md
|
||||
- Common Issues: misc/common-issues.md
|
||||
#- Troubleshooting: misc/troubleshooting.md
|
||||
- Development:
|
||||
@@ -126,7 +128,7 @@ extra:
|
||||
link: https://discord.gg/nYkb7MhPfD
|
||||
|
||||
plugins:
|
||||
- glightbox
|
||||
# - glightbox
|
||||
- search
|
||||
|
||||
watch:
|
||||
|
||||
@@ -4,4 +4,4 @@ pnpm run generate-docs-script
|
||||
|
||||
docker build -f ./docker/docs.Dockerfile -t chrisbenincasa/tunarr-docs .
|
||||
|
||||
docker run --rm -it -p 8088:8000 -v "${PWD}":/docs chrisbenincasa/tunarr-docs serve --dirtyreload
|
||||
docker run --rm -it -p 8088:8000 -v "${PWD}":/docs chrisbenincasa/tunarr-docs
|
||||
Reference in New Issue
Block a user