docs/overview/add-index-locations.mdx
Locations connect your existing folders to Spacedrive, making files searchable and organized without moving them. This guide covers adding locations, configuring indexing options, and optimizing performance for different use cases.
You'll learn to index everything from small document folders to massive media libraries efficiently.
A location represents a folder on your device that Spacedrive monitors. Key concepts:
Non-Destructive: Spacedrive never moves or modifies your original files. It only reads and indexes.
Device-Specific: Each location belongs to one device. Other devices see the files but can't access the physical path.
Real-Time Monitoring: Spacedrive watches for changes and updates the index automatically.
Flexible Depth: Control how deeply Spacedrive analyzes files, from basic names to full content extraction.
<Info> Locations can be local folders, external drives, or network mounts. Spacedrive treats them equally once indexed. </Info>Choose the right mode for your needs:
Fastest option capturing basic metadata:
Use for:
Comprehensive analysis including:
Use for:
Full text and analysis (future release):
Fine-tune each location after adding:
<Steps> <Step title="Access Location Settings"> Right-click location in sidebar and select "Settings" or click gear icon. </Step> <Step title="Indexing Rules"> Customize what gets indexed: - **File Extensions**: Include/exclude specific types - **Size Limits**: Skip files over certain size - **Path Patterns**: Ignore folders matching patterns - **Date Ranges**: Only index recent files </Step> <Step title="Watching Options"> Control real-time monitoring: - **Watch for Changes**: Enable filesystem monitoring - **Watch Frequency**: How often to check (default: instant) - **Process Immediately**: Index new files right away </Step> <Step title="Advanced Settings"> Performance and behavior: - **Priority**: Processing order vs other locations - **Parallelism**: Concurrent file processing - **Thumbnail Size**: Quality vs storage tradeoff </Step> </Steps>Optimize for image collections:
Settings for Photo Location:
- Indexing: Deep
- Thumbnails: High Quality
- Include: *.jpg, *.raw, *.heic
- Extract: EXIF metadata
- Watch: Enabled
Best practices for documents:
Settings for Documents:
- Indexing: Deep
- Include: *.pdf, *.docx, *.txt
- OCR: Enabled (when available)
- Versioning: Track changes
Handle video and audio efficiently:
Settings for Media:
- Indexing: Deep
- Thumbnails: First frame
- Extract: Duration, codec, resolution
- Exclude: *.tmp, *.partial
Index code intelligently:
Settings for Code:
- Indexing: Shallow
- Exclude: node_modules/, .git/, build/
- Include: Source files only
- Watch: Enabled for hot reload
Index removable storage:
<Steps> <Step title="Connect Drive"> Attach external drive and ensure it mounts properly. </Step> <Step title="Add as Location"> Select the drive root or specific folders. Name clearly like "Backup Drive - 4TB". </Step> <Step title="Configure Offline Behavior"> In settings, enable "Offline Mode": - Preserves index when disconnected - Shows files as unavailable - Re-syncs on reconnection </Step> <Step title="Set Auto-Mount"> Optional: Configure system to auto-mount and index when connected. </Step> </Steps> <Info> Spacedrive remembers external drives. Reconnecting automatically updates the index for changes made elsewhere. </Info>Index NAS and network shares:
<Steps> <Step title="Mount Network Share"> Ensure share mounted at OS level: - macOS: Finder → Go → Connect to Server - Windows: Map network drive - Linux: Mount via fstab or GUI </Step> <Step title="Add Location"> Browse to mounted path and add like any folder. </Step> <Step title="Optimize for Network"> Adjust settings for network performance: - Reduce parallelism - Enable caching - Increase timeouts - Shallow index initially </Step> <Step title="Handle Disconnections"> Enable offline mode to prevent errors when network unavailable. </Step> </Steps>Track indexing status effectively:
Access via status bar or ⌘J / Ctrl+J:
Right-click location → Statistics:
Files indexed: 45,234
Total size: 127 GB
Last indexed: 2 mins ago
Index health: 98%
Thumbnails: 12,453
Monitor impact during indexing:
Handle massive collections:
<Steps> <Step title="Index in Phases"> Add subfolders separately rather than entire directory tree at once. </Step> <Step title="Schedule Indexing"> Run initial index during off-hours: ```bash sd location add /large/library --schedule "02:00" ``` </Step> <Step title="Adjust Parallelism"> Reduce concurrent processing for stability: Settings → Location → Advanced → Max Workers: 2 </Step> <Step title="Disable Previews Initially"> Generate thumbnails after initial index completes. </Step> </Steps>Optimize for external/network drives:
Minimize resource usage:
CPU Management
Disk I/O
Memory Usage
Common causes and solutions:
Corrupted Files
Permission Issues
Resource Constraints
Verify files indexed correctly:
Fix index inconsistencies:
<Steps> <Step title="Stop Watching"> Disable location watching temporarily. </Step> <Step title="Clear Index"> Right-click → Advanced → Clear Index (keeps settings). </Step> <Step title="Re-index"> Start fresh index with same settings. </Step> <Step title="Verify Results"> Check file count matches filesystem. </Step> </Steps>Save configurations for reuse:
Photo Import Template:
- Deep indexing
- High quality thumbs
- EXIF extraction
- Auto-organization rules
Apply templates when adding similar locations.
Index based on rules:
Only index if:
- Free space > 10GB
- System idle > 5 min
- On AC power
- Network connected
Organize nested locations:
Media Library/
├── Photos/ (Deep index)
├── RAW Files/ (Shallow index)
└── Exports/ (Watch only)
Each sublocation can have different settings.
Share location references:
<Note> While files stay on original device, location metadata syncs so other devices know what exists where. </Note>Start Small: Test with small folders before indexing everything.
Name Clearly: Use descriptive names indicating content and device.
Regular Maintenance: Re-scan locations monthly to catch any missed changes.
Exclude Wisely: Prevent indexing temporary files, caches, and system folders.
Monitor Health: Check location statistics regularly for issues.
Document Settings: Note why specific settings chosen for future reference.
Your locations now integrate seamlessly with Spacedrive, making all your files searchable and organized while preserving your existing structure. Add locations strategically and tune settings for optimal performance.