Use it when the storage-protection question has been narrowed to Replication → File Replication. Preserve object identity, timestamps, dependency state and the newest authoritative data before changing configuration, deleting snapshot state, resynchronizing or changing replication ownership.
File Replication
A file replication engine identifies changed objects in a namespace and copies file contents plus supported metadata. Open-file semantics, rename ordering, ACLs, alternate streams, sparse attributes and conflict behavior are product-specific.
1. File replication copies files (rsync, DFSR, Syncthing, NAS replication).
2. Watch conflicts and deletions.
3. Backlogs indicate lag.
4. Not point-in-time unless snapshot-based.
5. Protect against propagated deletes.
file changes → replication tool → target files
Context & applicabilityCommon mistakes · platform/version boundaries
Successful file replication shows selected namespace objects were transferred according to the engine semantics, but it does not show open application transactions or unsupported metadata were preserved.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
source namespace → change detection → file/metadata selection → transfer → target namespace apply → metadata/ACL validation → file read-back
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- File replication ≠ block replication.
- File count match ≠ metadata/ACL parity.
- Copy complete ≠ open application state consistent.
- Namespace reachable ≠ every file version current.
rsync -aHAX --delete --dry-run <src>/ <dst>/— file sync previewGet-DfsrBacklog -SourceComputerName <a> -DestinationComputerName <b> -GroupName <g> -FolderName <f>— DFSR backlogzfs send/recv— dataset replication
ReferenceImportant terms & boundaries3 sections · depth on demand
Scope and what the checks show
Successful file replication shows selected namespace objects were transferred according to the engine semantics, but it does not show open application transactions or unsupported metadata were preserved.
In depth
File-level replication with rsync
rsync copies only files that changed. By default its quick check transfers a file when the size or modification time differs. Within changed files, it sends only the changed parts.
$ rsync -aHAX --delete --numeric-ids --itemize-changes --dry-run /srv/share/ dr01:/srv/share/
>f.st...... projects/plan.xlsx
*deleting tmp/old.log
$ rsync -aHAX --delete --numeric-ids --partial --bwlimit=50M /srv/share/ dr01:/srv/share/
Options from the rsync manual
| Option | Meaning |
|---|---|
-a | Archive (-rlptgoD): recursion, symlinks, permissions, times, owner and group, devices. It does not include -A, -X or -H |
-H, -A, -X | Preserve hard links, ACLs, extended attributes |
--delete | Remove files at the destination that no longer exist at the source |
--checksum | Compare checksums instead of size and mtime (slower; both sides read everything) |
-n / --dry-run | Show what would happen, change nothing |
--partial | Keep partially transferred files for restart |
--bwlimit | Limit bandwidth |
--link-dest=DIR | Hard-link unchanged files to DIR, for space-efficient versioned copies |
Pitfalls
| Pitfall | Effect |
|---|---|
| Trailing slash | src/ copies the contents, src copies the directory itself |
--delete with a wrong source path | Deletes the destination; always dry-run first |
| Open files (databases, VM images) | Copied in an inconsistent state; replicate from a snapshot |
| Many small files | Scanning dominates the run time |
| Replication is not versioning | Deletions and ransomware are replicated too; use --link-dest sets or snapshots at the target |
Run rsync from a snapshot of the source when you need a consistent point in time.
Documented example, not captured output.
Quick reference
File replication copies changed files or file differences between file servers or NAS systems (DFSR, rsync, NAS replication). It understands files, so it can replicate subsets and resolve conflicts, but open files and permissions need special handling.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Replication → File Replication. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://linbit.com/drbd-user-guide/drbd-guide-9_0-en/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Replication → File Replication proof map
Fast identity, dependency, failure-boundary and acceptance checks for Replication → File Replication.
| Storage boundary | What to verify | Proof limit |
|---|---|---|
| Identity / state | Correct object, source/target or snapshot point and same-window timestamps | Inventory alone does not prove data correctness |
| Dependency path | Change capture, queue/transport, target apply and currency checkpoint | A healthy adjacent component is not end-to-end proof |
| Failure boundary | Successful file replication proves selected namespace objects were transferred according to the engine semantics; it does not prove open application transactions or unsupported metadata were preserved. | Correlate evidence for the same operation and time window |
| Acceptance | Healthy evidence for File Replication: source and target identity/ownership are unambiguous, replication advances through the expected checkpoint, target apply succeeds, and the required read-back or promotion test matches the protected state. | Close only after original read-back/recovery test and protection-state verification |