Synchronizing with rsync outputs error "Invalid argument (22)" for directories with dots and other symbols in their name
9
votes
2
answers
9949
views
I tried to synchronize
/dir1
(ext4) and /dir2
(ntfs) using rsync -azP
, but got these errors:
rsync: recv_generator: mkdir "dir2/X.Y." failed: Invalid argument (22)
rsync: recv_generator: mkdir "dir2/CATSNDOGS\#123.11." failed: Invalid argument (22)
Note that directories X.Y.
and CATSNDOGS #123.11.
are created by other party and, named as they are, downloaded (using Python script) to /dir1
.
I can't cd
into these directories and ls -d
doesn't list them. On the other hand, GUI-based *nautilus* shows both them and content inside them perfectly.
Asked by Igor V.
(361 rep)
Feb 4, 2021, 09:17 PM
Last activity: Sep 26, 2023, 07:38 AM
Last activity: Sep 26, 2023, 07:38 AM