0

I'm trying to copy an archive of user data in a folder from one disk over to another for our new NAS system using

cp -r dev-disk-by-label-MainAllData/ /root/backup/

but am getting many 'Invalid argument' replies from cp for files that have characters like: ' ? - and possibly even just spaces.

Is there a way I can copy over a whole directory tree escaping the names of every file?

I'm on FreeNAS 11.1

0

I think this post may answer your question.

TL;DR, certain file systems like NTFS and ZFS don't allow certain characters like ? in file names.

ZFS allowed characters

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.