rsync: Files with bad characters in filename

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....

rsync: Files with bad characters in filename

Postby peter_b » Sun Dec 18, 2016 9:15 pm

I thought I'd seen almost anything when it comes to problematic filenames, under all kinds of different circumstances.
I was wrong.

Using rsync for years now to sync everything to everything, it failed on me today.
Rsync said "Everything fine. No deltas", but I like to use "kdiff3" for final checking.

Kdiff pointed out, that rsync had silently ignored all files that contained "problematic" characters in their filename, such as ":" (colon) or "?" (question mark).
I know that Windows filesystems can't handle these characters, but I was syncing from ext4 to zfs.

I'm a big fan of clean filenames, but I am surprised that rsync didn't complain at all. No error, no warning. Nothing. :shock:

It was not rsync! :D Rsync did everything as it should and all files were there.

The quirks was, that I used kdiff3 comparison over smb/samba share.
And since Windows can't handle certain characters, Samba also doesn't.
What Samba does is that it displays the file under legacy 8.3 notation (uppercase), but with random characters as filenames. Very misleading.

[url]]Rsync with colons in filenames ([/url]
  • 0

User avatar
Posts: 307
Joined: Tue Nov 12, 2013 2:05 am
Reputation: 3

Return to Knowledge Base

Who is online

Users browsing this forum: No registered users and 4 guests

Who is online over last 24 hours

Users browsed this forum in the last 24 hours: Bing [Bot] and 24 guests

Reputation System ©'