LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   can't recursively copy directories/files with non-ascii names on freeNAS (https://www.linuxquestions.org/questions/%2Absd-17/cant-recursively-copy-directories-files-with-non-ascii-names-on-freenas-714880/)

Rascale 03-27-2009 11:23 AM

can't recursively copy directories/files with non-ascii names on freeNAS
 
I have a disk mounted as FAT32 on a freeNAS (subset of freeBSD) box.
I'm trying to recursively copy a directory structure to another drive that's formated as FAT32 using:

cp -Rv /source /dest

When it hits a file in a subdirectory with spaces and non-ascii characters the copy fails with an error like this:

cp: /source/some subdir/funny filename à foo:
Invalid argument

Just trying to copy the single file gives the same error, but it works if I use quotes on the source file

cp "/source/some subdir/funny filename à foo" /dest

Putting quotes on the directory level copy like cp -Rv "/source" /dest
doesn't help.

Is there some other way I can do this copy?

Thanks

anomie 03-27-2009 03:39 PM

I'm not very familiar with FreeNAS, but since it's FBSD (well, actually m0n0wall) under the hood, are you able to install ports or packages? If so, install cpdup and try the copy -- it should handle it intelligently. Failing that, you could probably use tar or pax (both of which are included with the base system).

Rascale 03-30-2009 01:07 PM

It looks like pax worked.

Thanks for the help


All times are GMT -5. The time now is 08:45 PM.