Setting Up FileFortress on Multiple Devices
Sync configuration and manage authentication across devices
Overview
FileFortress supports running on multiple devices simultaneously. Each device maintains its own local database and file index, but they all connect to the same cloud storage accounts. This guide covers best practices for setting up and managing FileFortress across multiple devices.
Authentication Strategies
Option 1: Automatic Encryption (Machine-Specific)
Best for: Personal devices where you don't need to access the same database from multiple machines.
How it works: Each device has its own encrypted database using machine-specific encryption.
Setup:
filefortress init
Pros: No password to remember, automatic encryption
Cons: Each device has independent database, no data sharing between devices
Option 2: Custom Password with Key File
Best for: Accessing the same database from multiple devices.
How it works: Use a custom password and key file that you can copy to other devices.
Setup on first device:
filefortress --password YourSecurePassword init --create-key-file ~/filefortress.key
Setup on additional devices:
- Copy the key file to the new device
- Run:
filefortress --key-file ~/filefortress.key init
Pros: Share database across devices, consistent search results
Cons: Must manage password/key file securely
Multi-Device Setup Workflow
Step 1: Choose Your Strategy
Independent Databases
Each device has its own database
Shared Database
Same database across all devices
Step 2: Set Up First Device
For Independent Databases:
filefortress init
filefortress remotes add gdrive
filefortress remotes scan "Google Drive"
For Shared Database:
filefortress --password YourSecurePassword init --create-key-file ~/filefortress.key
filefortress --key-file ~/filefortress.key remotes add gdrive
filefortress --key-file ~/filefortress.key remotes scan "Google Drive"
Step 3: Set Up Additional Devices
For Independent Databases:
Simply repeat the setup on each device:
filefortress init
filefortress remotes add gdrive
filefortress remotes scan "Google Drive"
For Shared Database:
Copy the key file and use it:
# Copy ~/filefortress.key from first device
filefortress --key-file ~/filefortress.key init
filefortress --key-file ~/filefortress.key remotes add gdrive
filefortress --key-file ~/filefortress.key remotes scan "Google Drive"
Key File Management
Secure Storage
Setting Permissions (Linux/Mac)
chmod 600 ~/filefortress.key
Keeping Devices Synchronized
Scan Strategy
Option A: Scan on all devices
Each device scans independently. Good for ensuring all devices have up-to-date indexes.
# Run on each device
filefortress remotes scan --all
Option B: Scan on primary device only
Only scan on your primary device. Other devices use the shared database.
Note: Only works with shared database strategy.
Recommended Scan Schedule
| Device Type | Scan Frequency | Rationale |
|---|---|---|
| Primary Desktop | Daily | Keeps index fresh for all devices |
| Laptop | Weekly or as needed | Balance between freshness and battery life |
| Server | Hourly (automated) | Always up-to-date for team access |
Common Scenarios
Scenario 1: Laptop + Desktop (Personal Use)
Recommendation: Shared database with key file
Setup:
- Set up desktop with password and key file
- Copy key file to laptop (use secure cloud storage or USB)
- Initialize laptop with same key file
- Scan from whichever device you use most
Scenario 2: Multiple Team Members
Recommendation: Independent databases per person
Setup:
- Each team member gets their own registration code
- Each person sets up their own device independently
- Connect to shared cloud storage accounts (if permissions allow)
- Each person maintains their own scan schedule
Scenario 3: Home + Work Computer
Recommendation: Independent databases (security)
Setup:
- Use automatic encryption on both devices
- Connect to different cloud storage accounts on each
- Keep work and personal data separate
Troubleshooting
Solutions:
- Verify key file was copied correctly (check file size)
- Ensure file permissions are correct (600 on Linux/Mac)
- Try using
--passworddirectly instead of key file
Causes:
- Using independent databases (expected behavior)
- One device hasn't scanned recently
- Different remotes connected on each device
Solution: Run filefortress remotes scan --all on both devices
Solution:
- If you have key file on any device, you can still access
- If no key file exists, you'll need to reinitialize (loses local database)
- Your cloud files are safe - only local database is affected