Workflow Guides
Step-by-step guides for complete workflows
This page provides comprehensive workflow guides that walk you through complete processes from start to finish. Each guide includes detailed steps, examples, and best practices.
Available Workflow Guides
First-Time Setup Workflow
Complete walkthrough from installation to your first successful file search.
Step 1: Install & Verify
Download and install FileFortress CLI for your operating system, then verify the installation.
filefortress --version
Expected output: Version number like "FileFortress CLI v1.0.0"
Step 2: Initialize Device
Register your device with FileFortress using your registration code from the dashboard.
filefortress init
Follow the interactive prompts to enter your registration code and device name.
Step 3: Add Cloud Storage
Connect your first cloud storage account.
filefortress remotes add
Choose your provider (Google Drive, OneDrive, S3, or Backblaze B2) and follow the authentication flow.
Step 4: Scan Files
Build the initial file index by scanning your connected storage.
filefortress remotes scan --all
This may take a few minutes depending on how many files you have.
Step 5: First Search
Try your first search to verify everything is working!
filefortress search "document"
You should see a list of files matching your search term.
Multi-Cloud Management Workflow
Learn how to effectively manage files across multiple cloud storage providers with FileFortress.
Step 1: Plan Your Multi-Cloud Strategy
Before adding multiple cloud providers, plan your storage allocation:
Step 2: Add Multiple Remotes
Add each cloud provider with descriptive names:
# Add Google Drive
filefortress remotes add gdrive
# Name it: "Google Drive - Primary"
# Add Backblaze B2
filefortress remotes add b2
# Name it: "Backblaze - Backup"
# Add Amazon S3
filefortress remotes add s3
# Name it: "S3 - Archive"
# Verify all remotes
filefortress remotes list
Step 3: Organize Files Across Providers
Establish a clear organization strategy:
| File Type | Primary Location | Backup Location | Rationale |
|---|---|---|---|
| Active Projects | Google Drive | Backblaze B2 | Fast access + reliable backup |
| Photos (RAW) | Google Drive | Backblaze B2 | Unlimited storage + low-cost backup |
| Archives | S3 Glacier | - | Very low cost for rarely accessed files |
| Documents | OneDrive | Google Drive | Office integration + redundancy |
Step 4: Search Across All Clouds
FileFortress searches across all connected providers by default:
# Search all providers
filefortress search "project report"
# Search specific provider
filefortress search "project report" --remote-name "Google Drive - Primary"
# Search by provider type
filefortress search "backup" --remote-type b2
Step 5: Scan All Remotes
Keep your index up-to-date across all providers:
# Scan all remotes
filefortress remotes scan --all
# Scan specific remote
filefortress remotes scan "Google Drive - Primary"
# View scan status
filefortress remotes list
Step 6: Manage Storage Quotas
Monitor storage usage across providers:
# View remote details including quota
filefortress remotes info "Google Drive - Primary"
# Check total file count per provider
filefortress search "" --remote-name "Google Drive - Primary" | wc -l
Advanced Search Techniques Workflow
Master complex search queries, metadata filtering, and saved queries to find exactly what you need.
Step 1: Understand search vs find
FileFortress has two main search commands with different purposes:
| Command | Purpose | Example |
|---|---|---|
search |
Search by filename and metadata | filefortress search "report" |
find query |
Advanced queries with complex logic | filefortress find query "*.pdf" |
find duplicates |
Find duplicate files by hash | filefortress find duplicates |
Step 2: Use Metadata Filters
Filter by file metadata for precise results:
# Filter by file extension
filefortress search "" --extension pdf,docx
# Filter by media type
filefortress search "" --media-type image
# Filter by size
filefortress search "" --size-min 10MB --size-max 100MB
# Filter by date
filefortress search "" --modified-after "30 days"
# Filter by EXIF metadata (photos)
filefortress search "" --meta "exif.cameraMake=Canon"
Step 3: Combine Multiple Criteria
Chain filters for complex queries:
# Large PDFs modified recently
filefortress search "" --extension pdf --size-min 10MB --modified-after "7 days"
# High-resolution Canon photos from 2024
filefortress search "" \
--media-type image \
--meta "exif.cameraMake=Canon" \
--meta "exif.takenAt>=2024-01-01" \
--meta "image.width>=4000"
# Documents in specific remote
filefortress search "report" --extension docx,pdf --remote-name "Google Drive"
Step 4: Save Complex Queries
Save frequently used queries for quick access:
# Save a complex query
filefortress search "report" --extension pdf --modified-after "30 days" --save-query "recent-reports"
# Run saved query
filefortress search --use-query "recent-reports"
Step 5: Optimize Search Performance
Tips for faster searches:
--remote-name--limit 50 for large result setsFor more details, see our Complete Search Syntax Guide and Metadata Filtering Guide.
Regular Maintenance Workflow
Keep your FileFortress installation running smoothly with regular maintenance tasks.
Step 1: Check for CLI Updates
Keep FileFortress up-to-date with the latest features and bug fixes:
# Check for updates
filefortress update
# Check current version
filefortress --version
Frequency: Weekly or monthly
Step 2: Scan Remotes for New Files
Keep your file index up-to-date:
# Scan all remotes
filefortress remotes scan --all
# Scan specific remote
filefortress remotes scan "Google Drive"
# View last scan time
filefortress remotes list
Frequency: Daily for active storage, weekly for archives
Step 3: Verify Database Health
Check that your local database is functioning properly:
# View device info (includes database status)
filefortress device info
# Check total file count
filefortress search "" | wc -l
# Verify remotes are accessible
filefortress remotes list
Frequency: Monthly
Step 4: Backup Configuration
Protect your FileFortress configuration and key files:
# Windows: Backup configuration
copy %USERPROFILE%\.filefortress\* D:\Backups\FileFortress\
# Linux/Mac: Backup configuration
cp -r ~/.filefortress/ ~/Backups/FileFortress/
Important files to backup:
Frequency: Monthly or after major changes
Recommended Maintenance Schedule
| Task | Frequency | Command |
|---|---|---|
| Scan remotes | Daily | filefortress remotes scan --all |
| Check for updates | Weekly | filefortress update |
| Verify database | Monthly | filefortress device info |
| Backup configuration | Monthly | Copy ~/.filefortress/ |
Photography Workflow
Organize and search your photo library using EXIF metadata and FileFortress.
Step 1: Initial Setup and First Scan
Set up FileFortress and scan your photo storage:
# Initialize FileFortress
filefortress init
# Add your photo storage
filefortress remotes add gdrive
# Name it: "Photos - Google Drive"
# Scan to index all photos
filefortress remotes scan "Photos - Google Drive"
Step 2: Organize by EXIF Metadata
Use EXIF data to organize and find photos:
# Find all Canon photos
filefortress search "" --meta "exif.cameraMake=Canon"
# Find photos from specific camera
filefortress search "" --meta "exif.cameraModel=EOS R5"
# Find photos with specific lens
filefortress search "" --meta "exif.lens~=70-200"
Step 3: Find Photos by Criteria
Search by camera settings and dates:
# Wide aperture photos (portraits)
filefortress search "" --meta "exif.aperture<=2.8"
# Photos from 2024
filefortress search "" --meta "exif.takenAt>=2024-01-01"
# High ISO photos
filefortress search "" --meta "exif.iso>=3200"
# Photos with GPS data
filefortress search "" --meta "exif.gpsLatitude exists"
Step 4: Manage RAW + JPEG Pairs
Find and organize RAW and JPEG files:
# Find all RAW files
filefortress search "" --extension cr2,cr3,nef,arw,dng
# Find all JPEG files
filefortress search "" --extension jpg,jpeg
# Find specific photo in both formats
filefortress search "IMG_1234"
Step 5: Backup Strategies
Implement multi-cloud backup for photos:
# Add backup storage
filefortress remotes add b2
# Name it: "Photos - Backup B2"
# Scan backup storage
filefortress remotes scan "Photos - Backup B2"
# Verify photo exists in both locations
filefortress search "IMG_1234.CR2"
Step 6: Duplicate Detection
Find duplicate photos across all storage:
# Enable hash calculation
filefortress remotes enrich --all
# Find duplicates
filefortress find duplicates
# Save duplicate query
filefortress find duplicates --save-query "photo-duplicates"
For more details, see our comprehensive Photography Workflow Guide.
Automation & Scripting Workflow
Automate FileFortress tasks with scripts and scheduled jobs.
Step 1: Understanding Non-Interactive Mode
Use --non-interactive flag to suppress prompts:
filefortress remotes scan --all --non-interactive
This is essential for automated scripts that run without user interaction.
Step 2: Create Your First Script
PowerShell (Windows):
# scan-daily.ps1
$keyFile = "$env:USERPROFILE\filefortress.key"
filefortress --key-file $keyFile remotes scan --all --non-interactive
Bash (Linux/Mac):
#!/bin/bash
# scan-daily.sh
KEY_FILE="$HOME/filefortress.key"
filefortress --key-file "$KEY_FILE" remotes scan --all --non-interactive
Step 3: Schedule Scanning (Windows Task Scheduler)
# Create scheduled task for daily scan at 2 AM
$action = New-ScheduledTaskAction -Execute "PowerShell.exe" `
-Argument "-File C:\Scripts\scan-daily.ps1"
$trigger = New-ScheduledTaskTrigger -Daily -At 2am
Register-ScheduledTask -TaskName "FileFortress Daily Scan" `
-Action $action -Trigger $trigger
Step 4: Schedule Scanning (Linux/Mac cron)
# Edit crontab
crontab -e
# Add daily scan at 2 AM
0 2 * * * /home/username/scripts/scan-daily.sh
Step 5: Error Handling and Logging
Add logging to track script execution:
# PowerShell with logging
$logFile = "$env:USERPROFILE\FileFortress\logs\scan.log"
try {
"[$(Get-Date)] Starting scan" | Out-File $logFile -Append
filefortress --key-file $keyFile remotes scan --all --non-interactive
"[$(Get-Date)] Scan completed" | Out-File $logFile -Append
} catch {
"[$(Get-Date)] Error: $_" | Out-File $logFile -Append
}
Step 6: Monitoring and Alerts
Send notifications on success or failure:
# PowerShell with email notification
if ($?) {
Send-MailMessage -To "[email protected]" `
-Subject "Scan Success" -Body "Scan completed"
} else {
Send-MailMessage -To "[email protected]" `
-Subject "Scan Failed" -Body "Check logs"
}
For complete examples and advanced patterns, see our comprehensive Automation & Scripting Guide.
Request a Guide
Is there a workflow or use case you'd like us to document? Let us know!
Send Feedback