LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-13-2006, 04:15 AM   #1
MikeAtVillage
Member
 
Registered: May 2005
Location: Mid Wales (UK)
Distribution: Slackware 8.0, Suse 10.0/1/2, CentOS (SMEServer7)
Posts: 38

Rep: Reputation: 15
RSYNC - file ownership


Hi, I've been using rsync to copy files/dirs from remote servers (in our training centres) to my master server in head office for "backup" and have just noticed that ownerships are changing - no doubt due to the original owner not existing on the master server (UID/GID not matching) ! Is there a way around this, would the -o switch help ? At the moment I'm using -avz switches.

Thanks

Mike
 
Old 01-14-2006, 12:50 PM   #2
erimar77
Member
 
Registered: Jan 2006
Posts: 76

Rep: Reputation: 15
man rsync

-p, --perms preserve permissions
-o, --owner preserve owner (root only)
-g, --group preserve group
-D, --devices preserve devices (root only)
-t, --times preserve times

use the -p and -t options

Last edited by erimar77; 01-14-2006 at 12:55 PM.
 
Old 01-16-2006, 03:12 AM   #3
MikeAtVillage
Member
 
Registered: May 2005
Location: Mid Wales (UK)
Distribution: Slackware 8.0, Suse 10.0/1/2, CentOS (SMEServer7)
Posts: 38

Original Poster
Rep: Reputation: 15
Many thanks, I'll add those switches and see what happens.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
File Ownership chrisfirestar Linux - General 2 11-10-2005 04:41 AM
rsync Does Not Preserver File Ownership VorlonInfoTech Linux - General 4 10-20-2005 11:19 AM
file ownership dar28ek Linux - General 4 07-08-2005 08:43 AM
Apache File Ownership wenberg Linux - Software 2 04-02-2004 09:39 PM
CVS - file permissions and file ownership Osten Linux - Software 3 01-18-2004 04:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration