Solved

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

Posted on 2013-05-20
2
399 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 27

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

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Suggested Solutions

Article by: btan
Provide an easy one stop to quickly get the relevant information on common asked question on Ransomware in Expert Exchange.
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

757 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now