This is a weird one since I can't find it mentioned anywhere else, but it's not exactly a niche issue.

I'm trying to copy all of my music over to another server, and the files follow the [artist]/[artist] - [year] - [album]/[track]. [title] structure. I'm using the command rsync -azH /path/to/music user@password:/remote/path/to/music, and everything copies over fine, except for the songs whose album ends with a period. With these, the directory gets created, but the files do not get copied, giving the error: rsync: mkstemp "/path/to/music/Dead Kennedys/Dead Kennedys - 1982 - Plastic Surgery DisastersIn God We Trust Inc./.01. Advice From Christmas Past.flac.UVzf3u" failed: No such file or directory (2). Note also the .UVzf3u on the end of the file - I don't know where that comes from but the actual file is just a .flac.

Any ideas?

  • 1
    What type of server are you copying to, and what is its underlying filesystem type? Jul 9, 2019 at 22:39
  • Ensure that /remote/path/to/music exists.
    – Jim L.
    Jul 9, 2019 at 22:40
  • 1
    @roaima Ubuntu to Ubuntu, both ext4
    – cb7
    Jul 9, 2019 at 22:44
  • @JimL. it does, it's specifically directories ending in a period that don't work - everything else copies over fine
    – cb7
    Jul 9, 2019 at 22:45
  • It's a known issue on Windows platforms. I've never come across any issues with ext4 -> ext4 though. Very strange indeed. Jul 9, 2019 at 22:54

1 Answer 1


Thanks, this lead me to the answer. Was trying to rsync from ext4 to fat32 thumb drive on the same Linux system. Three folders out of a ~hundred, rsync refused to be satisfied with. Would insist on deleting the destination and copying it again, every time! Not great for flash drives.

Turned up the verbosity many times, debug flags, info flags, wouldn't tell me why. Desperate, starting combing thru the source code from github, no clues. Wasted hours.

Then I noticed the destination folder was missing a period at the end, which led me here.

roaima mentioned it was a "known issue," as if a rsync bug, but that doesn't quite capture it.

Turns out Windows (and by extension Linux' FAT driver) won't allow a filename or folder to end in with a period: https://stackoverflow.com/questions/11681207 Sounded vaguely familiar, but I'd forgotten.

So, rsync:

  • Doesn't find destination folder "foo."
  • Does find destination folder, named "foo"
  • Deletes "foo" from destination
  • Then copies "foo.", again !
  • Resulting in another destination folder, named "foo" !!!
  • Rinse and repeat.

No easy fix except changing the source folder name. Often when this is needed I choose a lookalike character from Unicode.

  • rsync is designed to work with Unix file systems. FAT32 is not a native Unix file system. Oct 31, 2021 at 8:10
  • While likely true, not particularly helpful in diagnosing the problem. Nov 1, 2021 at 17:17
  • The original poster told us they were copying from ext4 to ext4, so although copying to a FAT filesystem will trigger this sort of error, it may not be the issue that the OP had encountered Nov 1, 2021 at 17:34
  • @GringoSuave When asking in a Unix group it could very well be. Nov 1, 2021 at 21:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .