LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] [Q] Transferring c.200GiB via net, preserving attributes... How?

[ILUG] [Q] Transferring c.200GiB via net, preserving attributes... How?

Niall O Broin niall.obroin at gmail.com
Thu Apr 5 15:07:50 IST 2012


On 5 Apr 2012, at 14:50, Brian Foster wrote:

> I have got a shiny ‘New’ workstation (at work), and hence
.
.
.
.
>  ● Not all files owned by one UID(and some are owned
>    by ‘root’ and may not be readable to others).
>     I want to preserve as many attributes as possible
>    (especially the mode(permissions (including stuff
>    like sticky and set-ID bits), owner/group, both
>    hard- and sym-links, and modification time).

rsync is definitely the answer to your question. You say you want to preserve owner/group but what do you mean exactly - do you want to preserve UID/GID or owner name/group name? By default rsync -og (which rsync -a includes) does the latter if ossible, i.e. a file on the source owned by brian will end up owned by brian on the destination, providing there IS a brian on the destination, otherwise it preserves the UID/GID. If you don't want this behaviour (and you don't if you're using rsync to make an offsite backup of one box to another, not that I'm bitter, oh no) then you give rsync the --numeric-ids switch.


Niall


More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell