Rsync parity: extended delete options #128
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
FastSync currently only has
--delete(delete files on receiver not in source manifest). Rsync provides several more delete options:Missing flags
--delete-excluded— also delete excluded files (finding 18)--delete-missing-args— delete dest files missing from source args--force— force delete non-empty directories--max-delete <n>— safety limit on deletions--ignore-errors— delete even if I/O errors occur--remove-source-files— remove source after transferCurrent code
client_send.c— manifest tracking for--deleteserver.c— processes STATUS_MANIFESTprotocol.h— STATUS_MANIFEST existsImpact
--delete-excluded: excluded files remain on receiver with current--delete--force: deleting non-empty dirs fails silently--max-delete: safety net for accidental mass deletion--remove-source-files: migration/archival workflowsImplementation notes
--delete-excluded: mark excluded files for deletion in manifest--force: add rmtree/recursive unlink--max-delete: count deletions, abort at threshold--remove-source-files: unlink source after successful send