Skip to content

About

Cross-platform desktop sync manager (Linux & Windows) powered by Rclone with PySide6 GUI and SQLite history.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Rclone Sync Manager

Tests License: MIT Python Platform GUI Powered by rclone

🇧🇷 Documentação em Português

Cross-platform desktop application to manage local file synchronization powered by rclone, supporting both Linux and Windows.

It provides a PySide6 GUI, system tray icon, rsm CLI, execution queues, real-time filesystem watchers, flexible scheduling, per-job logs, SQLite audit history, automatic tray startup, and optional systemd --user background service integration on Linux.


Key Features

  • Multiplatform GUI & CLI: Desktop graphical interface (PySide6) and full-featured CLI tool (rsm).
  • Flexible Sync Engines: Supports sync, copy, and bidirectional synchronization (bisync).
  • Real-Time Watchers: Automatic trigger on file system modifications using watchdog.
  • Systemd User Integration: Daemon loop running seamlessly under systemd --user on Linux.
  • Rule Configurations: Visual editor with integrated support for both JSON and INI/CONF rule definitions.
  • Custom Rclone Flags: Per-job tuning for concurrency (--transfers, --checkers), bandwidth limits (--bwlimit), and provider optimizations (e.g., Google Drive chunk sizing and fast-listing).
  • Audit & Diagnostics: Persistent job history in SQLite, granular log streams, and built-in doctor diagnostic tool.

Requirements

  • Linux (desktop session) or Windows 10/11.
  • Python 3.11+.
  • rclone installed and configured in your PATH.
  • Access to systemd --user on Linux (optional, for running the background daemon).

On Arch Linux, for example:

sudo pacman -S python rclone

On Ubuntu / Debian:

sudo apt update && sudo apt install python3 python3-venv rclone

Linux Installation

On Linux, do not compile the project manually. It installs inside a local virtual environment isolated in the repository.

Do not use sudo for standard installation:

./scripts/install.sh

The installer can be executed from any path:

"/path/to/rclone-sync-manager/scripts/install.sh"

The installation script:

  • Creates or refreshes .venv inside the project root;
  • Installs Python dependencies and the package in editable mode;
  • Symlinks the executable to ~/.local/bin/rsm;
  • Ensures ~/.local/bin is exported in your shell PATH;
  • Initializes database schemas and local configuration directories;
  • Installs the systemd user unit to ~/.config/systemd/user/rclone-sync-manager.service;
  • Deploys the desktop entry to ~/.local/share/applications/rclone-sync-manager.desktop and scalable icon.

After installation, launch it from your application launcher or via terminal:

rsm gui

If rsm is not recognized immediately, reload your shell configuration (e.g., source ~/.bashrc or source ~/.zshrc).


Running Without Installing

To test directly from source on Linux:

./run.sh

On Windows (PowerShell):

.\run.ps1

If execution policies restrict scripts, execute via:

powershell -ExecutionPolicy Bypass -File .\run.ps1

Common direct runner commands:

./run.sh --help
./run.sh doctor
./run.sh gui

Windows equivalent:

.\run.ps1 --help
.\run.ps1 doctor
.\run.ps1 gui

System Startup

Tray Icon on Desktop Session

In the GUI, navigate to Settings and check:

Start with system

This generates ~/.config/autostart/rclone-sync-manager.desktop (Linux) or registers rclone-sync-manager.bat in the user's Startup directory (Windows).

Background Daemon Service (Linux)

To run the sync manager loop as a systemd user service:

systemctl --user enable --now rclone-sync-manager.service

Service helper commands:

rsm service-status
rsm enable-service
rsm disable-service

The daemon automatically manages execution queues, real-time watchers, periodic schedules, and jobs flagged with Run on startup.


CLI Reference

Adding Jobs

Upload from local directory to remote storage:

rsm add-job \
  --name Documents \
  --local /home/rafael/Documents \
  --remote gdrive:Documents \
  --mode copy

Download from remote storage to local path:

rsm add-job \
  --name RestoreDocuments \
  --local /home/rafael/Documents \
  --remote gdrive:Documents \
  --mode copy \
  --direction remote-to-local

Daily Operations

rsm list
rsm status
rsm run --job Documents
rsm logs --job Documents
rsm export-jobs jobs.json
rsm import-jobs jobs.json

For the initial run of a bidirectional sync (bisync):

rsm init-bisync --job Documents

Sync Tuning & Ignore Filters

Direction & Watching

  • local -> remote: Uses watchdog kernel event listeners when real-time watching is enabled.
  • remote -> local: Uses remote polling via rclone lsf.

Default Concurrency

Transfers: 4
Checkers: 8

Recommended Ignore Filters

Standard rclone ignore syntax is supported (e.g., .tmp, node_modules/**, vendor/**, __pycache__/**). Note that .git/** is not ignored by default to safeguard unpushed local branches and stashes.


Development & Testing

Set up development environment:

python -m venv .venv
source .venv/bin/activate
python -m pip install -e . pytest
rsm init
rsm doctor

Run test suite and static checks:

scripts/check.sh

Run unit tests directly:

pytest

Uninstallation (Linux)

./scripts/uninstall.sh

Removes:

  • Systemd user service unit;
  • Symlink at ~/.local/bin/rsm;
  • Desktop menu launcher and icons.

Database and configuration files under ~/.config/rclone-sync-manager and ~/.local/share/rclone-sync-manager are preserved.

About

Cross-platform desktop sync manager (Linux & Windows) powered by Rclone with PySide6 GUI and SQLite history.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages