FileSyncHub User Guide
Welcome to the FileSyncHub User Guide! This comprehensive guide will help you get started with FileSyncHub and make the most of its features.
Getting Started
Installation
- Install using Cargo:
cargo install filesynchub
- Or build from source:
git clone https://github.com/yourusername/FileSyncHub.git cd FileSyncHub cargo build --release
Initial Setup
- Create the configuration directory:
mkdir -p ~/.config/filesynchub/credentials
- Configure your cloud services:
Basic Usage
Starting FileSyncHub
Run FileSyncHub with the TUI interface:
filesynchub sync --tui
First-Time Authentication
- When you first run FileSyncHub, it will prompt you to authenticate with your cloud services
- Follow the authentication instructions in the TUI
- Complete the authentication process in your web browser
- Return to FileSyncHub to begin syncing
Configuration
Basic Configuration
Create a configuration file at ~/.config/filesynchub/config.toml
:
[general]
sync_interval = 300 # 5 minutes
log_level = "info"
[sync]
local_dir = "/path/to/your/files"
See Sync Configuration for detailed configuration options.
Features
File Synchronization
- Bi-directional sync between local files and cloud storage
- Real-time file change detection
- Conflict resolution
- Selective sync with ignore patterns
Cloud Services
- Google Drive integration
- OneDrive integration
- Extensible plugin system for additional services
User Interface
- Beautiful Terminal User Interface (TUI)
- Progress indicators
- File transfer status
- Error reporting
Advanced Topics
Best Practices
Security
- Keep credentials secure
- Use environment variables for sensitive information
- Regularly update FileSyncHub
- Review sync permissions
Performance
- Configure appropriate sync intervals
- Use selective sync for large directories
- Set reasonable file size limits
- Optimize network settings
Organization
- Structure your sync directories logically
- Use consistent naming conventions
- Configure ignore patterns for unnecessary files
- Keep sync paths shallow
Common Tasks
Adding Files to Sync
- Place files in your configured sync directory
- FileSyncHub will automatically detect and sync them
- Monitor progress in the TUI
Resolving Conflicts
- FileSyncHub detects file conflicts
- Choose resolution strategy in configuration
- Review conflict logs
- Manually resolve if needed
Checking Sync Status
- Open FileSyncHub TUI
- View current sync status
- Check logs for detailed information
- Monitor file transfer progress
Troubleshooting
Common Issues
- Authentication Problems
- Verify credentials
- Check network connection
- Review authentication logs
- Sync Issues
- Check file permissions
- Verify configuration
- Review ignore patterns
- Performance Problems
- Adjust sync interval
- Optimize file patterns
- Check resource usage
Next Steps
- Read the Configuration Guide
- Set up Cloud Services
- Explore Advanced Features
- Join our Community