?
Solved

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

Posted on 2013-05-20
2
Medium Priority
?
409 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
[X]
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
2 Comments
 
LVL 30

Accepted Solution

by:
serialband earned 2000 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

What is a Denial of Service (DoS)?

A DoS is a malicious attempt to prevent the normal operation of a computer system. You may frequently see the terms 'DDoS' (Distributed Denial of Service) and 'DoS' used interchangeably, but there are some subtle differences.

Question has a verified solution.

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

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…
Suggested Courses
Course of the Month11 days, 15 hours left to enroll

752 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