feat(sync): support one-way backup and two-way mirror synchronization modes

Open
#11 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
cloud, desktop

Research direction

The issue does not name files or tests; first locate the backup profile settings and the existing backup engine entry points. Trace how changes and deletions are handled before scoping the two modes and retention trash behavior. Done means profiles can select either mode and their documented synchronization and deletion behaviors are implemented and verified.

Written by the indexing model from the issue text.

Description

engine enhancement
Is your feature request related to a problem? Please describe.

Currently, the backup engine performs one-way snapshot creation. Users need clear control over how local file changes and deletions interact with the cloud, specifically distinguishing between a safe permanent archive and an active two-way mirror.

Describe the solution you'd like

Provide configurable synchronization modes in the application settings per backup profile:

  1. One-Way Sync (Backup / Archive - Default & Recommended):

    • Direction: Local -> Cloud only.
    • Deleting a file locally never deletes the backup stored in the cloud.
    • Ideal for long-term data safety and disaster recovery.
  2. Two-Way Sync (Mirror):

    • Direction: Local <-> Cloud bidirectional sync.
    • Local additions/edits upload to the cloud.
    • Deletions on either side reflect on the other to keep both sides identical.
    • Include a safety retention trash/recycle bin for deleted items to prevent accidental data loss.
  3. UI Selection:

    • Add a radio selector in the Backup setup/Settings view allowing users to choose between One-Way Backup and Two-Way Mirror with explanatory descriptions.
Describe alternatives you've considered

Enforcing only one-way backup or only two-way sync, which limits use cases for users who want mirror replication versus users who need permanent disaster archives.

Dominant language
Rust
Stars
3
Forks
6
Avg merge
5h 37m
Merged PRs (30d)
12

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from abdulwalidal/secure-backup

All issues in abdulwalidal/secure-backup

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.