A comprehensive Python toolkit for backing up and converting reMarkable tablet notebooks to PDF with template support and proper folder hierarchy preservation.
Important
This tool has been tested exclusively on reMarkable 2. Compatibility with reMarkable 1 is not guaranteed.
- USB Connection: Connects to reMarkable tablet over USB (10.11.99.1)
- Incremental Sync: Only downloads files that have changed since last backup
- Complete Backup: Backs up all notebooks, documents, and metadata
- Template Support: Automatically backs up template files from the device
- File Integrity: MD5 hash verification for synced files
- Hybrid Converter: Supports both v5 and v6 .rm file formats
- Template Rendering: Applies original notebook templates (grids, lines, etc.) to PDFs
- SVG Pipeline: Uses rmc → SVG → PDF conversion for high quality output
- Folder Hierarchy: Recreates original device folder structure in output
- Single PDF per Notebook: Merges all pages into one PDF file per notebook
- Smart Conversion: Only converts notebooks updated in the last backup
- Progress Tracking: Visual progress bars and detailed logging
-
reMarkable Tablet Setup:
- Connect your reMarkable tablet to your computer via USB
- Enable SSH access (it's enabled by default)
- Get your SSH password from Settings → Help → Copyright and licenses
-
Python Requirements:
- Python 3.11 or higher (required)
- Required packages (install with
pip install -r requirements.txt) - All dependencies including
rmcare installed automatically
macOS users can install RemarkableSync using Homebrew:
# Add the tap (one time only)
brew tap jeffsteinbok/remarkablesync
# Install RemarkableSync
brew install remarkablesyncThis will automatically:
- Install Python 3.13 and all dependencies (including
rmc) - Set up everything needed for PDF conversion
Updating to latest version:
brew upgrade remarkablesyncUninstalling:
brew uninstall remarkablesync
brew untap jeffsteinbok/remarkablesyncFor users with Python 3.11+ installed:
# Install using pip (recommended: use a virtual environment)
pip install remarkablesyncUpdating to latest version:
pip install --upgrade remarkablesyncFor users without Python or who prefer standalone executables, download from the Releases page.
Important
macOS Users: Use the included RemarkableSync.sh script to launch the application. This automatically handles macOS Gatekeeper security:
./RemarkableSync.shThe script removes the quarantine flag and runs the executable. You can pass any command-line arguments:
./RemarkableSync.sh backup -v
./RemarkableSync.sh convert --sample 5-
Clone this repository:
git clone https://github.com/JeffSteinbok/RemarkableSync.git cd RemarkableSync -
Install dependencies:
pip install -r requirements.txt
The simplest way to get started:
- Connect your reMarkable tablet via USB
- Get your SSH password from Settings → Help → Copyright and licenses on your tablet
- Run RemarkableSync:
# If installed via Homebrew (macOS) RemarkableSync # If using Python python3 RemarkableSync.py
- Enter your password when prompted (you can save it for future use)
- Your notebooks will be backed up to
./remarkable_backup/Notebooks/ - PDFs will be created in
./remarkable_backup/PDF/
That's it! The tool will only sync changed files and convert updated notebooks on subsequent runs.
RemarkableSync provides a single entry point with three main commands:
The most common workflow - backs up your device and converts only updated notebooks:
# If installed via Homebrew
RemarkableSync
# If using Python
python3 RemarkableSync.pyThis will:
- Connect to your ReMarkable tablet via USB
- Backup all changed files (including templates)
- Convert only notebooks that were updated in this backup
Backup only (no conversion):
# Homebrew
RemarkableSync backup
# Python
python3 RemarkableSync.py backupConvert only (from existing backup):
# Homebrew
RemarkableSync convert
# Python
python3 RemarkableSync.py convertSync with options:
# Force full backup and conversion (ignore sync status)
RemarkableSync sync --force-backup --force-convert
# Skip template backup
RemarkableSync sync --skip-templates
# Verbose output
RemarkableSync sync -vConvert a single notebook (by name or UUID):
RemarkableSync convert --notebook "My Notebook"Convert first N notebooks (for testing):
RemarkableSync convert --sample 5Force convert all notebooks (ignore sync status):
RemarkableSync convert --force-allCommon Options (all commands):
-d, --backup-dir: Directory for backups (default:./remarkable_backup)-v, --verbose: Enable debug logging--version: Show version and repository information
Backup/Sync Options:
-p, --password: ReMarkable SSH password (will prompt if not provided)--skip-templates: Don't backup template files-f, --force/--force-backup: Backup all files (ignore sync status)
Convert Options:
-o, --output-dir: Output directory for PDFs (default:backup_dir/pdfs_final)-f, --force-all/--force-convert: Convert all notebooks (ignore sync status)-s, --sample N: Convert only first N notebooks-n, --notebook NAME: Convert only specific notebook (by UUID or name)
- Connection: Establishes SSH connection to ReMarkable tablet at 10.11.99.1
- File Discovery: Scans
/home/root/.local/share/remarkable/xochitl/for notebook files - Template Backup: Downloads template files from
/usr/share/remarkable/templates/ - Incremental Sync: Compares file metadata (size, modification time, hash) to determine what needs updating
- Download: Uses SCP to efficiently transfer only changed files
- PDF Conversion:
- Converts .rm files to SVG using rmc (for v6 format)
- Renders template backgrounds (grids, lines, dots)
- Merges templates with notebook content
- Combines all pages into single PDF per notebook
- Smart Updates: Tracks which notebooks changed and only converts those
After backup, your directory will contain three clean folders:
remarkable_backup/
├── Notebooks/ # All notebook files and metadata
│ ├── [uuid].metadata # Document metadata files
│ ├── [uuid].content # Document content info
│ └── [uuid]/ # Notebook directories
│ ├── [uuid]-metadata.json # Page metadata
│ └── *.rm # Drawing/writing data (v5 or v6 format)
├── Templates/ # Template files from device
│ ├── *.png # Template preview images
│ ├── *.template # Template definition files
│ └── templates.json # Template metadata
├── PDF/ # Generated PDF outputs
│ └── [notebook folders with PDFs preserving hierarchy]
├── sync_metadata.json # Sync state tracking
├── updated_notebooks.txt # List of notebooks updated in last backup
└── .remarkable_backup.log # Backup operation log
RemarkableSync includes a hybrid converter that supports both v5 and v6 .rm file formats:
- v6 Format (newer tablets): Uses external
rmctool to convert .rm → SVG → PDF - v5 Format (older tablets): Direct Python-based conversion (legacy support)
- Template Rendering: Custom renderer applies original device templates with accurate scaling (226 DPI → 72 DPI PDF points)
- Page Merging: Uses PyPDF2 to composite template backgrounds with notebook content
For v6 notebook conversion, RemarkableSync uses the rmc Python package:
- Repository: https://github.com/ricklupton/rmc
- Installation: Automatically installed as a dependency with RemarkableSync
- Note: This is included in
requirements.txtand installed via pip
The tool maintains a sync_metadata.json file that tracks:
- File modification times
- File sizes
- MD5 hashes of local files
- Last sync timestamps
Files are only downloaded if:
- They don't exist locally
- Remote modification time changed
- Remote file size changed
- Local file hash doesn't match stored hash
- Ensure ReMarkable is connected via USB
- Verify the tablet shows up as network interface
- Try pinging
10.11.99.1 - Check SSH password from tablet settings
- Run as administrator on Windows if needed
- Ensure backup directory is writable
- Restart ReMarkable tablet if SSH becomes unresponsive
- Check available disk space on both devices
- SSH password is requested interactively (not stored)
- Uses paramiko with auto-add host key policy
- Files are transferred over local USB network (not internet)
This tool is for personal use with your own ReMarkable tablet. Respect ReMarkable's terms of service.