2025-05-24 22:46:35 +07:00
# 🧘♀️ Zen-Sync
2026-07-21 03:17:58 +07:00
A (vibe-coded) Windows only command-line tool for syncing [Zen Browser ](https://zen-browser.app/ ) data with S3-compatible storage services.
2025-05-24 22:46:35 +07:00
2026-07-21 03:17:36 +07:00
## What it does
2025-05-24 22:46:35 +07:00
Since Zen Browser doesn't have proper profile sync yet, this is my quick solution built in a few hours to keep my stuffs in sync across multiple machines.
It backs up all the important stuff to any S3-compatible cloud storage so you can restore or "sync" your profile anywhere. No more manually dragging around profile folders every time you edit a settings 🥹🥹😭. I'm so done with that.
The default (customizable) setting skips session cookies, temporary storage, and other data because sites I visit can detect copied sessions through fingerprinting and will invalidate them.
2026-07-21 03:17:36 +07:00
## Features
2025-05-24 22:46:35 +07:00
2026-07-21 03:17:36 +07:00
- **Bidirectional sync** between local and S3 storage
- **Filtering** - only syncs important files, excludes cache and temporary data
- **"Incremental" sync** - only uploads/downloads changed files
- **Custom S3 endpoints** - works with any S3-compatible service
2025-05-24 22:46:35 +07:00
## 📋 What gets synced by default
**Included:**
2026-07-21 03:17:36 +07:00
- Profile configuration (`profiles.ini` , `installs.ini` , `compatibility.ini` )
- Profile Groups databases (`Profile Groups/*.sqlite` )
- Bookmarks (`places.sqlite` , `bookmarks.html` )
- Saved passwords and certificates (`key4.db` , `cert9.db` , `logins.json` )
- Extensions and their settings (`extensions.json` , `extension-*.json` )
- Custom themes and CSS (`zen-*.json` , `zen-*.css` , `userChrome.css` , `userContent.css` )
- Browser preferences (`prefs.js` , `user.js` )
- Search engine settings (`search.json.mozlz4` )
- Favicons (`favicons.sqlite` )
- Chrome folder customizations (`chrome/**/*` )
- and other files from customizable ruleset
2025-05-24 22:46:35 +07:00
**Excluded:**
2026-07-21 03:17:36 +07:00
- Cache files (`cache2/*` , `thumbnails/*` , `shader-cache/*` )
- Logs and crash reports (`logs/*` , `crashes/*` , `minidumps/*` )
- Lock files (`*.lock` , `*.lck` , `parent.lock` )
- Temporary storage (`storage/temporary/*` , `storage/*/ls/*` )
- Session data (`sessionstore.jsonlz4` , `sessionCheckpoints.json` )
- Session cookies (`cookies.sqlite*` )
- Temporary browsing data (`webappsstore.sqlite*` , `safebrowsing/*` )
2025-05-24 22:46:35 +07:00
Use `--help` with any command for detailed options.
2026-07-21 03:17:36 +07:00
## Quick Start
2025-05-24 22:46:35 +07:00
2026-07-21 03:17:36 +07:00
1. **Configure your S3 settings:**
2025-05-24 22:46:35 +07:00
```bash
python zensync.py configure --bucket your-bucket-name --endpoint-url https://your-s3-endpoint.com
` ``
or just run ` ``python zensync.py configure` `` then edit the configuration json manually.
2026-07-21 03:17:36 +07:00
2. **Upload your profiles:**
2025-05-24 22:46:35 +07:00
` ``bash
python zensync.py upload
` ``
2026-07-21 03:17:36 +07:00
3. **Download profiles on another machine:**
2025-05-24 22:46:35 +07:00
` ``bash
python zensync.py download
` ``
2026-07-21 03:17:36 +07:00
4. **Two-way sync:**
2025-05-24 22:46:35 +07:00
` ``bash
python zensync.py sync
` ``
2025-05-25 00:18:05 +07:00
## 🎮 Main Commands
2025-05-24 22:46:35 +07:00
2026-07-21 03:17:36 +07:00
- ` configure` - Set up S3 credentials and paths
- ` upload` - Backup profiles to S3
- ` download` - Restore profiles from S3
- ` sync` - Bidirectional synchronization
- ` list-profiles` - Show available local profiles
- ` profile-info` - Display profile system information
2025-05-24 22:46:35 +07:00
2026-07-21 03:17:36 +07:00
## Configuration
2025-05-24 22:46:35 +07:00
Settings are stored in ` zen_sync_config.json`.