Introduction
You've set up your seedbox perfectly. Sonarr grabs the latest episode, qBittorrent finishes the download, and... nothing happens. You open your file manager, expecting to see your new content, but the directory looks exactly like it did an hour ago. Sound familiar?
This frustrating scenario happens when your seedbox doesn't automatically refresh its directory listings. Your files are there—sitting on disk—but your file manager, media server, or cloud sync tools don't know about them yet. In this guide, you'll learn how to set up automatic directory scanning so your seedbox always shows you the latest files without manual refreshing.
Why Auto-Refresh Matters
Before diving into solutions, let's understand why this problem exists in the first place.
Most file managers and web interfaces cache directory listings for performance. Reading disk directories constantly would slow everything down, so systems refresh on a schedule or when manually triggered. This works fine for static files, but seedboxes are dynamic environments where new content appears constantly.
Common symptoms of missing auto-refresh:
The good news? SonicBit provides built-in tools to solve this, and you can customize the behavior to match your workflow.
Understanding Directory Scanning Methods
There are three main approaches to keeping your file listings current:
1. Real-Time Monitoring (inotify)
Linux systems use inotify to watch filesystem events in real-time. When a file is created, modified, or deleted, the system immediately knows about it. This is the fastest method but can use significant resources if you're monitoring thousands of files.
Best for: Small to medium libraries where instant updates matter (like media servers streaming new episodes immediately).
2. Scheduled Scanning (cron)
Traditional cron jobs run directory scans at fixed intervals—every 5 minutes, every hour, etc. This uses fewer resources but introduces a delay between when files arrive and when they appear.
Best for: Large libraries where a few minutes of delay is acceptable.
3. Event-Based Triggers
Some applications trigger scans when specific events occur—like when qBittorrent completes a download. This is efficient because scanning only happens when needed.
Best for: Automation stacks where apps can communicate with each other (Sonarr → Plex, for example).
Setting Up Auto-Refresh on SonicBit
SonicBit's web dashboard includes built-in file refreshing, but you can supercharge it with custom automation. Here's how to configure different refresh strategies:
Method 1: Using SonicBit's Built-In Refresh
The simplest approach requires zero configuration. SonicBit's My Drive automatically refreshes directory listings every few minutes when you're actively browsing. If you notice delays, manually click the refresh icon in the file manager.
For most users, this is sufficient. But if you're running automated downloads or syncing files to cloud storage, you'll want more control.
Method 2: Configuring Plex/Jellyfin Auto-Scan
If you're using SonicBit to host a media server, configure your app to scan libraries automatically:
For Plex:
For Jellyfin:
jellyfin.yourusername.sonicbit.net)These settings tell your media server to periodically check for new files, eliminating the "where's my episode?" problem.
Method 3: Custom Cron Jobs for Advanced Users
For maximum control, you can create custom cron jobs that trigger scans based on your exact needs. This requires SSH access (available on SonicBit's premium plans).
Here's a basic example that scans your downloads folder every 10 minutes:
bash
/10 * * * find /home/yourusername/downloads -type f -mmin -15 >> /tmp/new_files.log
This cron job finds files modified in the last 15 minutes and logs them. You can extend this to trigger specific actions:
bash
/10 * * * find /home/yourusername/downloads -type f -mmin -15 -exec curl -X POST http://localhost:8000/api/refresh \;
This example sends a refresh signal to a local API endpoint whenever new files are detected.
Method 4: Sonarr/Radarr Post-Processing
If you're running the Sonarr/Radarr automation stack, leverage their connection features to trigger scans:
Now when Sonarr downloads and organizes a new episode, it automatically tells Plex to scan that specific folder. This is the most efficient method because scanning only happens when needed, exactly where needed.
Optimizing Refresh Intervals
More frequent scanning isn't always better. Here's how to choose the right refresh interval:
| Use Case | Recommended Interval | Reasoning |
|---|---|---|
| Active streaming (Plex/Jellyfin) | 5-15 minutes | Users expect new content quickly |
| Cloud sync (Remote Upload) | 15-30 minutes | Allows downloads to complete before syncing |
| Large libraries (10TB+) | 30-60 minutes | Reduces disk I/O on slow scans |
| Automation testing | 2-5 minutes | Faster feedback during setup |
Remember that aggressive scanning can slow down your seedbox if you're running on limited resources. Start with longer intervals and decrease only if needed.
Troubleshooting Common Issues
Files still don't appear after scanning
Check your file permissions. If your download client runs as one user and your media server as another, permission mismatches can hide files. SonicBit's Docker containers usually handle this automatically, but manual uploads might need adjustment:
bash
chmod -R 755 /path/to/your/files
Scans take forever
If you have a massive library, full scans can take hours. Use partial scanning instead—configure your apps to only scan specific folders or use the event-based triggers mentioned earlier.
Duplicate files appearing
This usually means multiple apps are moving files around. Check that Sonarr/Radarr aren't configured to both copy AND move files, which creates duplicates.
Integrating with SonicBit's Remote Upload
One of the best auto-refresh use cases is combining automated downloads with Remote Upload. Here's a workflow that keeps your Google Drive perfectly synchronized:
/downloads/media/tv-shows/media/tv-shows to Google DriveTo set this up, configure Remote Upload in your SonicBit dashboard to monitor your media folders, and enable automatic uploads. The refresh mechanisms we've covered ensure Remote Upload always knows about new files immediately.
Best Practices Recap
Conclusion
Auto-refreshing your seedbox files transforms it from a manual process into a smooth, automated experience. Whether you're streaming media through Plex, syncing to cloud storage with Remote Upload, or managing downloads through the web dashboard, proper directory scanning ensures everything stays in sync.
SonicBit handles much of this complexity automatically, but understanding these techniques lets you fine-tune your setup for your exact workflow. Start with the built-in refresh mechanisms, then layer in custom automation as your needs grow.
Sign up free at SonicBit.net and get 4GB storage. Download our app on Android and iOS to access your seedbox on the go.