Skip to content

[Feature Request] Delete files in the receiver not listed in --files-from=FILE #837

@cos4ni2s

Description

@cos4ni2s

I am backing up files from my computer to a USB flash drive using a list file that contains paths to the desired files. When I remove a path from that list and re-sync, the corresponding files are not being deleted from the USB drive, even though I am using the --delete and --delete-missing-args flags. rsync appears to focus strictly on the paths currently in the list, effectively ignoring (and failing to clean up) any files at the destination that are no longer included in the list.

I am proposing a --clean-up flag that would instruct rsync to treat the list as the exclusive set of allowed files at the destination, purging any files found there that do not match an entry in the list or moving them to the --backup-dir=DIR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions