using rsync with files/folders using embedded blanks in names
by SaintDanBert from LinuxQuestions.org on (#4PZE6)
How do I use rsync to read and write when the file and folder names use embedded blanks?
DISCLAIMER -- This issues is typographically awkward. I'll try my best but please bear with me.
I have a flock of external drives, SD cards, and thumb drives that were written using embedded blanks in file and folder names. I'm tasked to consolidate these files and folders onto a linux file server. A simple copy using:
Code:prompt$ cp -av "some\ Source" "some\ Target"One issue,
(or similar) does not seem to be good enough.
One tangle comes from the "volume name" or "volume label" that typically results in a mount point like
/media/username/some sort of string with blanks
Now when you add folder and file names you quickly run out of allowed characters on a command line in scripts or internal to utilities like rsync.
While running, rsync reports "I/O error writing..." for some blank-embedded files. It succeeds with others. The failing files can be moved manually using:
Code:prompt$ cp -av "source/a file/that uses blanks" "target/a file/keeping blanks"Thanks in advance,
~~~ 0;-Dan


DISCLAIMER -- This issues is typographically awkward. I'll try my best but please bear with me.
I have a flock of external drives, SD cards, and thumb drives that were written using embedded blanks in file and folder names. I'm tasked to consolidate these files and folders onto a linux file server. A simple copy using:
Code:prompt$ cp -av "some\ Source" "some\ Target"One issue,
(or similar) does not seem to be good enough.
One tangle comes from the "volume name" or "volume label" that typically results in a mount point like
/media/username/some sort of string with blanks
Now when you add folder and file names you quickly run out of allowed characters on a command line in scripts or internal to utilities like rsync.
While running, rsync reports "I/O error writing..." for some blank-embedded files. It succeeds with others. The failing files can be moved manually using:
Code:prompt$ cp -av "source/a file/that uses blanks" "target/a file/keeping blanks"Thanks in advance,
~~~ 0;-Dan