Cloud Sync

Seamlessly synchronize your database connections, saved queries, and settings across all your devices using Google Drive. Choose between passwordless sync or end-to-end encrypted secure sync.

Sync Modes

Basic Sync

Passwordless

Syncs your data without sensitive credentials. Best for users who prefer to enter passwords manually on each device.

What gets synced:

  • Connection configurations
  • Saved queries (SQL Book)
  • App settings & preferences
  • Workbooks & dashboards

What does NOT sync:

  • Database passwords
  • SSH private keys
  • SSL certificates

Secure Sync

Recommended

Syncs everything, including passwords and SSH keys, protected by end-to-end AES-256 encryption. Only you know the master password.

Everything in Basic, plus:

  • Database passwords
  • SSH private keys
  • Key passphrases
  • SSL certificates

Security features:

  • AES-256-GCM encryption
  • Argon2id key derivation
  • Zero-knowledge architecture
  • End-to-end encrypted

How it works: Your sensitive data is encrypted on your device before upload. Google never sees your plaintext secrets. Encryption and decryption happen only on your devices.

Setting Up Cloud Sync

1

Enable Cloud Sync

  1. Go to Settings → Cloud Sync
  2. Click Connect Google Drive
  3. Sign in with your Google account
  4. Grant DBView permission to create files in its own folder
2

Choose Your Sync Mode

For Secure Sync (Recommended):

  1. Select Secure Sync
  2. Create a strong master password
  3. Confirm your password
  4. Read and acknowledge the recovery warning
  5. Click Enable Secure Sync

Important: Store your master password safely!

If you forget your master password and don't have access to any device with your local data, your encrypted secrets cannot be recovered. This is a security feature, not a bug.

Setting Up a New Device

DBView automatically detects existing sync data in your Google Drive when you sign in on a new device.

Basic Sync

  1. Sign in to Google Drive
  2. Data imports automatically
  3. Enter passwords as needed

Secure Sync

  1. Sign in to Google Drive
  2. Enter your master password
  3. Everything imports automatically

SSH Key Restoration

When secure sync restores SSH keys, you'll be prompted to choose where to save them:

work.pem → ~/.dbview/keys/work.pem

id_rsa → ~/.dbview/keys/id_rsa

staging.pem → ~/.dbview/keys/staging.pem

Keys are saved with secure permissions automatically (chmod 600 on macOS/Linux).

Managing Your Master Password

Changing Your Password

If you know your current password and want to change it:

  1. Go to Settings → Cloud Sync
  2. Click Change Master Password
  3. Enter your current password
  4. Enter and confirm your new password
  5. Click Update Password

Your secrets are re-encrypted with the new password and synced to all devices.

Forgot Your Password?

If you have access to a device with your local data:

  1. On that device, go to Settings → Cloud Sync
  2. Click Reset Master Password
  3. Enter and confirm a new password
  4. Your secrets are re-encrypted and synced

If you have NO device with local data:

Unfortunately, your encrypted secrets cannot be recovered. This is by design—it ensures that even if someone gains access to your Google account, they cannot read your secrets without your master password.

Options: Import connections without secrets (re-enter passwords manually) or start fresh.

Multi-Device Sync

How Sync Works Across Devices

Device A

Google Drive

Device B

Changes sync automatically. If you change the master password on one device, other devices will prompt you to enter the new password.

What Gets Stored Where

FileContentsEncrypted?
connections.jsonConnection configs (without passwords)No
queries.jsonSaved SQL queriesNo
settings.jsonApp preferencesNo
workbooks.jsonDashboard layoutsNo
secrets.encPasswords, SSH keys, certificatesYes (AES-256)

Security Details

Encryption Specifications

Encryption:AES-256-GCM
Key Derivation:Argon2id
Compression:GZIP (before encryption)

Security Properties

  • Zero-knowledge: Google never sees plaintext
  • End-to-end encryption on your devices
  • No key transmission over network
  • Forward secrecy on password reset

What we cannot do: Recover your master password, decrypt your secrets without your password, or access your secrets on Google's servers.

Frequently Asked Questions

Is my data safe if my Google account is compromised?

With Secure Sync, yes. Your secrets are encrypted with AES-256 using a key derived from your master password. An attacker would need both your Google account AND your master password.

Can I use the same password as my Google password?

We strongly recommend using a different password. If someone gains access to your Google account, you don't want them to easily guess your DBView master password.

Can I sync between Mac, Windows, and Linux?

Yes! Cloud Sync works across all platforms. SSH keys and passwords sync seamlessly between operating systems.

What happens if I uninstall DBView?

Your sync data remains in Google Drive. When you reinstall, just sign in and your data will be restored.

Can I switch between Basic and Secure Sync?

Yes. You can upgrade to Secure Sync anytime by setting a master password. You can also downgrade to Basic Sync, which will delete your secrets.enc file from Google Drive.

Quick Reference

Enable syncSettings → Cloud Sync → Connect
Change master passwordSettings → Cloud Sync → Change Password
Reset forgotten passwordOn device with data: Settings → Cloud Sync → Reset
Disable syncSettings → Cloud Sync → Disable
Force sync nowSettings → Cloud Sync → Sync Now

Related Documentation

DBView - The SQL client you'll love using | Product Hunt