Understanding Poge’s Data Storage
Poge stores several types of data in your browser:Database Connections
Saved PostgreSQL server connections including host, port, username, and encrypted passwords.
Query History
Your SQL query history with timestamps and execution results.
Saved Notes
SQL notes and snippets you’ve saved for later use.
User Preferences
Theme settings, UI preferences, and editor configurations.
Backup Strategies
Automatic Browser Backup
Some browsers sync LocalStorage across devices, but this is not reliable for critical data:- Chrome/Edge: Syncs some data when signed in
- Firefox: Syncs data across devices
- Safari: Uses iCloud sync on Apple devices
Do not rely solely on browser sync. Always maintain manual backups of important connections and queries.
Manual Backup Frequency
Recommended backup schedule:After adding new connections
Export your data immediately after adding important database connections.
Encrypted Full Data Export
Poge uses encrypted.enc files for full data backups, protecting sensitive connection information.
Creating an Encrypted Backup
Choose encryption password
Enter a strong password to encrypt your backup. This password will be required for restoration.
What’s Included in Full Export
The encrypted export contains:- All database connections (including passwords)
- Complete query history
- Saved notes and snippets
- User preferences and settings
- Theme and UI customizations
Encryption Details
Poge uses strong encryption for backup files:- Algorithm: AES-256-GCM (industry standard)
- Key derivation: PBKDF2 with high iteration count
- Format: Encrypted JSON with authentication tag
Settings-Only Export
For sharing configurations without sensitive data, use settings-only export.Creating a Settings Export
What’s Included in Settings Export
The settings export contains only:- UI preferences
- Theme settings
- Editor configurations
- Display options
- Database connections
- Passwords
- Query history
- Personal notes
Settings exports are plain JSON files (not encrypted) since they don’t contain sensitive data. They’re safe to share or version control.
Restoring from Backup
Restoring Encrypted Backup
Choose import mode
Select how to handle existing data:
- Merge
- Replace
Combines backup data with existing data. Newer entries take precedence.
Restoring Settings
Migration Between Instances
Moving between different Poge instances (self-hosted, Vercel, different browsers) is straightforward.Migrating to a New Instance
Export from source
On your current Poge instance:
- Export full data (encrypted)
- Save the
.encfile securely
Access new instance
Open your new Poge deployment:
https://your-new-deployment.vercel.apphttps://poge.yourdomain.comhttp://localhost:3000(self-hosted)
Import to destination
On the new instance:
- Go to Settings → Import
- Upload your
.encfile - Enter decryption password
- Choose “Replace” for clean migration
Cross-Browser Migration
Moving data between browsers (Chrome → Firefox, Safari → Edge):Team Distribution
Sharing connection templates with team members:Distribute
Share the
.json file with team members via:- Internal wiki
- Git repository (safe since no passwords)
- Team chat
Backup Storage Best Practices
Secure Storage Locations
- Password Manager
- Cloud Storage
- Local Storage
Store backup files and encryption passwords in a password manager:
- 1Password (supports file attachments)
- Bitwarden (secure notes with attachments)
- LastPass (secure notes)
Backup File Organization
Keep your backups organized:Backup Rotation Policy
Recommended retention schedule:- Daily: Keep last 7 days
- Weekly: Keep last 4 weeks
- Monthly: Keep last 12 months
- Yearly: Keep indefinitely
Disaster Recovery
Scenario: Browser Cache Cleared
Scenario: Lost Encryption Password
If you’ve lost your password:- Check your password manager
- Check secure notes or documents where you might have saved it
- If truly lost, the backup is unrecoverable
- You’ll need to manually recreate connections
Scenario: Corrupted Backup File
If a backup file is corrupted:- Try an older backup file
- Check if you have cloud storage versions/history
- Use settings-only export if available (no encryption needed)
Automated Backup Scripts
For power users, automate backup reminders:Compliance and Data Governance
For organizations with compliance requirements:Data Retention
- Backups contain database credentials and query history
- Follow your organization’s data retention policies
- Securely delete old backups when no longer needed
GDPR Considerations
If you’re in the EU:- Backup files may contain personal data
- Store backups in GDPR-compliant locations
- Ensure backups are encrypted
- Have a process for backup deletion on request
Backup Verification
Regularly test your backups:Test your backups at least once per quarter to ensure they’re valid and you remember your encryption password.
Migration Troubleshooting
Import fails with “Invalid password”
- Double-check your password (case-sensitive)
- Ensure you’re using the
.encfile, not.json - Verify the file wasn’t corrupted during transfer
Connections don’t work after import
- Database credentials may have changed
- Server IP/hostname may be different
- Check SSL/TLS requirements for the database
Missing query history
- Ensure you used “Full Export”, not “Settings Only”
- Check if you selected “Merge” instead of “Replace”
- Verify the export date - you may have an older backup
Your data is now protected with a solid backup strategy!