and I want to make a tarball for only these directories, and move the tarball to another AIX node (AIX 6.1) and un-tar so that I can keep the exact directories and contents on the AIX 6.1 node.
Can you please advise on
1) how to make a tarball for only these specific directories and their sub-directories
2) how to un-tar the tarball so that it doesn't create duplicate directories on the target AIX node?
I am a little confused by your showing /lms and then some subdirectories originated in /lms. So, you do not want ALL files in /lms directory? If this is the case then I'd do following:
Some of /lms' sub-directories are mounted. That is why you are seeing the mounted /lms/* directories.
I DO want all of the directories, their sub-directories, and all contents. I want to make everything into a tarball, and un-tar onto the target node.
Here, what would be the /your/target/folder? The target AIX node has the same directory structure as the source. So, /your/target/folder would be /lms, or just / ?
I have ssh set up between the two nodes, so I prefer this method.
I don't see the parent directory /lms on the command line.
What do we do with /lms ? Please advise.
It will create the needed /lms but maybe not with the original permissions (because they are not present in the tar file).
The cpio method will transfer the correct permissions for /lms.
With any of these, is it possible to skip the files with the same filesize in the destination node? It will be great to save time for the copy as to there are a number of files, which takes a long time if I copy over all files over again.
I like to skip the same files, exiting in the destination node. In that case, I can just copy over new/updated files, which will be a huge time saver.