Missing --backup / --backup-dir flags for safe destructive operations #97

Closed
opened 2026-07-21 16:19:55 +02:00 by TapTap · 1 comment
Owner

Description

FastSync has --delete but no --backup to save replaced/deleted files. rsyncs --backup-dir is a critical safety feature for destructive operations.

Location

  • src/server/server.c (receive path)
  • src/shared/file.c (to_disk, file_save_to_disk)

Suggested Fix

Add --backup and --backup-dir <path> flags. On the receiver, before overwriting an existing file, copy it to the backup directory preserving relative path. Requires Config changes and protocol extension.

Severity

medium

Category

feature

Sub-Agent

feature-scout (FS-3)


This issue was automatically generated by the issue-creator agent.

## Description FastSync has `--delete` but no `--backup` to save replaced/deleted files. rsyncs `--backup-dir` is a critical safety feature for destructive operations. ## Location - src/server/server.c (receive path) - src/shared/file.c (to_disk, file_save_to_disk) ## Suggested Fix Add `--backup` and `--backup-dir <path>` flags. On the receiver, before overwriting an existing file, copy it to the backup directory preserving relative path. Requires Config changes and protocol extension. ## Severity medium ## Category feature ## Sub-Agent feature-scout (FS-3) --- _This issue was automatically generated by the issue-creator agent._
Author
Owner

Fixed in PR #148 — merged into main on 2026-07-29.

Fixed in PR #148 — merged into main on 2026-07-29.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TapTap/FastSync#97