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