We got a filesystem: /foo
And we got another filesystem: /bar
Q: How can I copy all the files from /foo to /bar?
We don't have space to compress them, only to copy them. But there could be symlinks, hardlinks in the filesystem. So need to preserve these and the owner, permission, structure, hidden files! What is the best way?
extra: files with strange characters or block/character files too
UPDATE: can we use gzip with this? if need to copy via network, compression would be very-very useful.