Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Preserving uid, gid, size, etc. when coping to an NFS mount point

Posted on 2013-05-20
2
402 Views
Last Modified: 2013-05-21
Hello,
I have read several posts on preserving attributes when copying to an NFS mounted file system, however, I haven't arrived at a method to try yet.
What I want to do is copy portions of directory trees with all their files to another NFS mounted file system on a different system for backup purposes.  The restore process needs to be straightforward should I ever need to do that.
Since my work on the systems does not affect anyone else, I can disconnect from the external network while doing the copies if there is a method that is easy but unsecure.  In other words, I would return the systems to their original state security-wise when the copy operations are finished.
Thanks for any suggestions.
Robert

P.S.
Source machine OS: Linux Kernal 2.6.18-164.6.1.el5xen
Destination machine OS: Linux Kernal 2.6.32-279.9.1.el6x86 64 on Centos release 6.3 (Final)
Source is on Centos too but version not available to me at the moment but I know it is < 6.
0
Comment
Question by:RDiersing
2 Comments
 
LVL 29

Accepted Solution

by:
serialband earned 500 total points
ID: 39182413
rsync will do it.

rsync -a /local_dir/ /mounted_dir=

To restore just switch the order:
rsync -a /mounted_dir/ /local_dir/
0
 

Author Closing Comment

by:RDiersing
ID: 39186268
Thanks very much for your help.
I tried rsync today in both directions and it worked fine for me.
0

Featured Post

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ticket bloat 3 49
EXCHANGE. LINUX, SYMANTEC MESSAGING GATEWAY 2 37
Folder Security & Group Policy in Windows Server 2012 3 30
Intel fortran compiler (ifort) 5 38
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
This article outlines the process to identify and resolve account lockout in an Active Directory environment.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question