Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

File Replication

Direct answer

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.

When to use this

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.

First 30 seconds

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.

Operational verification

file changes → replication tool → target files

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Failure and recovery traps

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.

Platform / version applicability
Data protection and recovery
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformData protection and recovery
Scope / prerequisiteUse it when the storage-protection question has been narrowed to Replication → File Replication. Preserve object identi…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • File replication ≠ block replication.
  • File count match ≠ metadata/ACL parity.
  • Copy complete ≠ open application state consistent.
  • Namespace reachable ≠ every file version current.
Key checks
  • rsync -aHAX --delete --dry-run <src>/ <dst>/ — file sync preview
  • Get-DfsrBacklog -SourceComputerName <a> -DestinationComputerName <b> -GroupName <g> -FolderName <f> — DFSR backlog
  • zfs 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

OptionMeaning
-aArchive (-rlptgoD): recursion, symlinks, permissions, times, owner and group, devices. It does not include -A, -X or -H
-H, -A, -XPreserve hard links, ACLs, extended attributes
--deleteRemove files at the destination that no longer exist at the source
--checksumCompare checksums instead of size and mtime (slower; both sides read everything)
-n / --dry-runShow what would happen, change nothing
--partialKeep partially transferred files for restart
--bwlimitLimit bandwidth
--link-dest=DIRHard-link unchanged files to DIR, for space-efficient versioned copies

Pitfalls

PitfallEffect
Trailing slashsrc/ copies the contents, src copies the directory itself
--delete with a wrong source pathDeletes the destination; always dry-run first
Open files (databases, VM images)Copied in an inconsistent state; replicate from a snapshot
Many small filesScanning dominates the run time
Replication is not versioningDeletions 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docData protection and recovery current

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%
Terminology layer

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.

Aliases that resolve here
file replicationfile-replicationreplication file replication
Embedded reference data

Quick lookup tables

Replication → File Replication proof map

Fast identity, dependency, failure-boundary and acceptance checks for Replication → File Replication.

Storage boundaryWhat to verifyProof limit
Identity / stateCorrect object, source/target or snapshot point and same-window timestampsInventory alone does not prove data correctness
Dependency pathChange capture, queue/transport, target apply and currency checkpointA healthy adjacent component is not end-to-end proof
Failure boundarySuccessful 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
AcceptanceHealthy 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
Confirmation

Confirm action

Continue?