Best Practices 8 min read by syncopio Team

The NFSv4 Timestamp Bug: Why Your File Dates Don't Survive Migration

NFSv4 silently overwrites file timestamps during write-back processing, affecting rsync, cp -p, and every migration tool. Here's what's going on and what to do about it.

TL;DR

NFSv4 silently overwrites file timestamps during delegation write-back processing — every tool is affected (rsync, cp, tar). Fix: use NFSv3 (vers=3) for destination mounts. Client-side stat lies due to caching — verify directly on the server. syncopio detects NFSv4 destinations automatically and switches to NFSv3 when timestamp preservation is enabled.

You copy 500 files to an NFS share. Sizes match. Hashes match. Your tool says timestamps were preserved. You move on.

Except the timestamps are wrong. Every single one. And nothing told you.

We found this during a routine migration test. The client-side stat showed the correct dates, the ones we’d carefully preserved from the source. But when we checked the same files directly on the NFS server, every modification time had been quietly replaced with the time of the transfer.

This isn’t a bug in rsync. It isn’t a bug in cp, tar, or any other tool. It’s baked into how NFSv4 handles file writes. Every copy tool on earth produces the same result when writing to an NFSv4 destination.

Who's affected?

Anyone copying files to an NFSv4 share where original file dates matter: backups, migrations, compliance archives, incremental syncs. If your destination mount uses NFSv4, your timestamps may already be wrong.

Enter your email to read the fix and full technical analysis

We won't spam you. Unsubscribe any time.

Ready to simplify your migrations?

See how syncopio can save you hours on every migration project.

Request a Demo