LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-10-2010, 01:33 AM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 489

Rep: Reputation: 36
rsync command


I' using "rsync -a /opt/* /backup/opt".

I have a question for this command.

1. permission.
2. ownership.

When I restore data from this backup, can I have no prblem for permission and ownership?
 
Old 08-10-2010, 01:38 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
-p options preserves the permissions. -a seems to be a combination of several and -p is included. So it should preserve the permissions.
 
Old 08-10-2010, 01:44 AM   #3
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
The -a is a synonym for -rlptgoD. The p in those options makes rsync preserve permissions, whilst the o makes it preserve ownership. Assuming the filesystem in /backup/opt supports permissions and ownership of files, then when you restore from backup, all the files should have the same ownership as they originally did, so long as you copy using something which transfers permissions as well as data (cp -a, for example).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Rsync problem: command not found j_70 Linux - Software 17 09-23-2016 01:28 PM
replacing rm command with a rsync script :-) kdelover Programming 3 11-14-2009 10:49 AM
rsync command problems krisrae675 Linux - Newbie 17 08-01-2009 03:23 AM
Find command and rsync combine b-RAM Linux - General 21 05-29-2009 02:37 AM
Exclude function On rsync command its_joy Linux - Server 5 01-18-2008 04:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:27 PM.

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