back-up and restoration purposes the purpose of retiring an old server, I will need to create a perfect mirror image of an NFS share. This mirror is not a simple re-direct, but rather, an exact copy of the contents of an NFS Share (including file-permissions).
I have tried simple tasks, such as copying files as
root with the command:
cp -pR /path-to-nfs-share/ /local-directory-to-mirror-nfs-share-contents/
Unfortunately, the command above does not copy all files, as it returns
permission denied errors for some of the files and directories it encounters. Thus, to avoid potential permissions issues, I wanted to create a perfect mirror (i.e. preserving all permissions) of the files.
Unfortunately, I can't seem to find much documentation on performing this task. Is this doable?